$users */ public function __construct( private readonly \DateTimeInterface $begin, private readonly \DateTimeInterface $end, private array $users ) { } public function getBegin(): \DateTimeInterface { return $this->begin; } public function getEnd(): \DateTimeInterface { return $this->end; } /** * @return User[] */ public function getUsers(): array { return $this->users; } public function getProject(): ?Project { return $this->project; } public function setProject(?Project $project): void { $this->project = $project; } }