mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 19:04:03 +00:00
WIP TenantManager
This commit is contained in:
parent
96e8dec5eb
commit
696cc8ba9a
2 changed files with 25 additions and 1 deletions
22
src/TenantManagerv2.php
Normal file
22
src/TenantManagerv2.php
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Stancl\Tenancy;
|
||||
|
||||
final class TenantManager
|
||||
{
|
||||
public function addTenant(Tenant $tenant): self
|
||||
{
|
||||
$this->storage->addTenant($tenant);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function updateTenant(Tenant $tenant): self
|
||||
{
|
||||
$this->storage->updateTenant($tenant);
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue