mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-14 17:04:03 +00:00
Domain model & resolver test
This commit is contained in:
parent
08ed5084d5
commit
e1a4054743
11 changed files with 158 additions and 8 deletions
13
src/Contracts/TenantResolver.php
Normal file
13
src/Contracts/TenantResolver.php
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
namespace Stancl\Tenancy\Contracts;
|
||||
|
||||
interface TenantResolver
|
||||
{
|
||||
/**
|
||||
* Resolve a tenant using some value.
|
||||
*
|
||||
* @throws TenantCouldNotBeIdentifiedException
|
||||
*/
|
||||
public function resolve(...$args): Tenant;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue