value; } /** * True when this kind has no status of its own: a phase is a collection of tasks, its state comes * from them. */ public function hasStatus(): bool { return self::Phase !== $this; } /** * Applies the kind's rules to the task's dates. A milestone's end date is enslaved to its start * date: whatever is set, the end becomes the start. */ public function enslaveDates(Task $task): void { if (self::Milestone === $this && null !== $task->getStartDate()) { $task->setEndDate(clone $task->getStartDate()); } } }