1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-06 05:44:02 +00:00

Atomic tenant creation

This commit is contained in:
Samuel Štancl 2019-09-08 15:05:04 +02:00
parent b0d119753d
commit 37567336a5
4 changed files with 68 additions and 3 deletions

View file

@ -0,0 +1,15 @@
<?php
namespace Stancl\Tenancy\Contracts;
abstract class TenantCannotBeCreatedException extends \Exception
{
abstract function reason(): string;
private $message;
public function __construct()
{
$this->message = 'Tenant cannot be craeted. Reason: ' . $this->reason();
}
}