1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-06 02:04:04 +00:00
tenancy/src/Contracts/TenantCannotBeCreatedException.php
2022-09-29 23:39:35 +02:00

18 lines
362 B
PHP

<?php
declare(strict_types=1);
namespace Stancl\Tenancy\Contracts;
abstract class TenantCannotBeCreatedException extends \Exception
{
abstract public function reason(): string;
/** @var string */
protected $message;
public function __construct()
{
$this->message = 'Tenant cannot be created. Reason: ' . $this->reason();
}
}