Skip to content

Instantly share code, notes, and snippets.

@dgafka
Created February 1, 2024 07:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgafka/aaacbad9fa376c8a11599c7da6738bd6 to your computer and use it in GitHub Desktop.
Save dgafka/aaacbad9fa376c8a11599c7da6738bd6 to your computer and use it in GitHub Desktop.
multi-tenancy-10.php
<?php
interface PersonService
{
#[DbalWrite('INSERT INTO persons VALUES (:personId, :name, DEFAULT)')]
public function register(int $personId, string $name): void;
#[DbalWrite('UPDATE persons SET name = :name WHERE person_id = :personId')]
public function changeName(int $personId, string $name): int;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment