Tasks get an ordered checklist (spec 8.2, phase 3): items are checked done with who and when recorded, also by subcontractors attached to the job; others add, rename, reorder and remove items. Items go with their task. The spec gets a phase 3 chapter (18.1), and open questions move to chapter 19. Co-Authored-By: Claude Opus 5.5 <[email protected]>
19 lines
473 B
PHP
19 lines
473 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Modules\Jobs\Domain\Exceptions;
|
|
|
|
use App\Modules\Shared\Domain\Exceptions\DomainException;
|
|
|
|
/**
|
|
* The checklist item does not exist or belongs to another task or job.
|
|
*/
|
|
final class ChecklistItemNotFound extends DomainException
|
|
{
|
|
public function __construct(public readonly int $taskId, public readonly int $itemId)
|
|
{
|
|
parent::__construct("Checklist item {$itemId} of task {$taskId} was not found.");
|
|
}
|
|
}
|