D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
dateitor
/
www
/
vendor
/
stancl
/
tenancy
/
src
/
Exceptions
/
Filename :
TenantDatabaseAlreadyExistsException.php
back
Copy
<?php declare(strict_types=1); namespace Stancl\Tenancy\Exceptions; use Stancl\Tenancy\Contracts\TenantCannotBeCreatedException; class TenantDatabaseAlreadyExistsException extends TenantCannotBeCreatedException { /** @var string */ protected $database; public function reason(): string { return "Database {$this->database} already exists."; } public function __construct(string $database) { $this->database = $database; parent::__construct(); } }