mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-14 04:14:05 +00:00
Clean up TenantCannotBeCreatedException
This commit is contained in:
parent
2657df5a88
commit
15a7db9e71
5 changed files with 12 additions and 18 deletions
|
|
@ -43,12 +43,13 @@ interface StorageDriver
|
|||
public function all(array $ids = []): array;
|
||||
|
||||
/**
|
||||
* Check if a tenant can be created.
|
||||
* Ensure a tenant can be created.
|
||||
*
|
||||
* @param Tenant $tenant
|
||||
* @return true|TenantCannotBeCreatedException
|
||||
* @return void
|
||||
* @throws TenantCannotBeCreatedException
|
||||
*/
|
||||
public function canCreateTenant(Tenant $tenant);
|
||||
public function ensureTenantCanBeCreated(Tenant $tenant): void;
|
||||
|
||||
/**
|
||||
* Get a value from storage.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue