$workDaysHours iso-day → minutes */ public function build( Employee $employee, Contract $contract, DateTimeImmutable $startDate, ?DateTimeImmutable $endDate, ContractNature $nature, bool $isDriver = false, ?array $workDaysHours = null, ?InterimAgency $interimAgency = null, ): EmployeeContractPeriod { return new EmployeeContractPeriod() ->setEmployee($employee) ->setContract($contract) ->setStartDate($startDate) ->setEndDate($endDate) ->setContractNature($nature) ->setIsDriver($isDriver) ->setWorkDaysHours($workDaysHours) ->setInterimAgency($interimAgency) ; } }