14 lines
308 B
PHP
14 lines
308 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace Application\Security\Exceptions;
|
||
|
|
|
||
|
|
final class ClientNameAlreadyExistsException extends \DomainException
|
||
|
|
{
|
||
|
|
public static function forName(string $name): self
|
||
|
|
{
|
||
|
|
return new self("A client with the name '{$name}' (or similar) already exists.");
|
||
|
|
}
|
||
|
|
}
|