14 lines
262 B
PHP
14 lines
262 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace Domain\Exceptions;
|
||
|
|
|
||
|
|
final class NotFoundException extends \DomainException
|
||
|
|
{
|
||
|
|
public static function forEntity(string $entity, string $id): self
|
||
|
|
{
|
||
|
|
return new self("{$entity} '{$id}' not found.");
|
||
|
|
}
|
||
|
|
}
|