$allowedServiceUnitIds */ public function __construct( public int $taskId, public int $jobId, public string $jobNumber, public string $jobName, public string $customerName, public string $title, public ?string $description, public ?string $instructions, public string $status, public string $priority, public int $priorityRank, public ?string $dueOn, public ?string $plannedFrom, public ?string $plannedTo, public ?string $estimatedHours, public array $allowedServiceUnitIds, public bool $isDone, ) {} /** * Whether making the task on the day is outside its schedule or after * its due date (spec 19.4: shown as a note, not prevented). */ public function isOutsidePlan(string $day): bool { return ($this->plannedFrom !== null && $day < $this->plannedFrom) || ($this->plannedTo !== null && $day > $this->plannedTo) || ($this->dueOn !== null && $day > $this->dueOn); } }