ldc-arcadia-api/src/Application/Arcadia/Exceptions/EmployeeNotFoundException.php

16 lines
394 B
PHP

<?php
declare(strict_types=1);
namespace Application\Arcadia\Exceptions;
use Domain\Models\ValueObjects\Employees\ArcadiaEmployeeId;
use Shared\DDD\Exception\NotFoundException;
final class EmployeeNotFoundException extends NotFoundException
{
public static function forEmployee(ArcadiaEmployeeId | string $id): self
{
return new self("Employee '{$id}' not found.");
}
}