mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-14 04:14:05 +00:00
WIP DatabaseManager
This commit is contained in:
parent
af5b7e8558
commit
9dd90746aa
5 changed files with 61 additions and 17 deletions
|
|
@ -9,9 +9,11 @@ use Stancl\Tenancy\Exceptions\TenantCouldNotBeIdentifiedException;
|
|||
|
||||
interface StorageDriver
|
||||
{
|
||||
public function createTenant(Tenant $tenant): bool;
|
||||
public function createTenant(Tenant $tenant): void;
|
||||
|
||||
public function updateTenant(Tenant $tenant): bool;
|
||||
public function updateTenant(Tenant $tenant): void;
|
||||
|
||||
public function deleteTenant(Tenant $tenant): void;
|
||||
|
||||
/**
|
||||
* Find a tenant using an id.
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ abstract class TenantCannotBeCreatedException extends \Exception
|
|||
{
|
||||
abstract public function reason(): string;
|
||||
|
||||
private $message;
|
||||
protected $message;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue