1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-13 23:54:03 +00:00

Custom tenant collections

This commit is contained in:
Samuel Štancl 2020-05-14 02:29:14 +02:00
parent 1a8d150f2c
commit 5e99fca070
4 changed files with 86 additions and 1 deletions

View file

@ -7,7 +7,18 @@ namespace Stancl\Tenancy\Contracts;
*/
interface Tenant
{
/** Get the name of the key used for identifying the tenant. */
public function getTenantKeyName(): string;
/** Get the value of the key used for identifying the tenant. */
public function getTenantKey(): string;
/** Get the value of an internal key. */
public function getInternal(string $key);
/** Set the value of an internal key. */
public function setInternal(string $key, $value);
/** Run a callback in this tenant's environment. */
public function run(callable $callback);
}
}