mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-06 01:34:02 +00:00
23 lines
576 B
PHP
23 lines
576 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Stancl\Tenancy\Database\Contracts;
|
|
|
|
use Stancl\Tenancy\Contracts\Tenant;
|
|
use Stancl\Tenancy\Database\DatabaseConfig;
|
|
|
|
interface TenantWithDatabase extends Tenant
|
|
{
|
|
/** Get the tenant's database config. */
|
|
public function database(): DatabaseConfig;
|
|
|
|
/** Get the internal prefix. */
|
|
public static function internalPrefix(): string;
|
|
|
|
/** Get an internal key. */
|
|
public function getInternal(string $key): mixed;
|
|
|
|
/** Set internal key. */
|
|
public function setInternal(string $key, mixed $value): static;
|
|
}
|