new HoursEntry($hours->userId, $hours->jobId, $hours->workTypeId, $hours->quarters, $hours->unapprovedQuarters, $hours->billedQuarters), $this->queries->hoursBetween($period->from, $period->to), ); } public function unbilledUntil(string $day): array { return array_map( fn (UnbilledHours $hours): UnbilledEntry => new UnbilledEntry($hours->jobId, $hours->workTypeId, $hours->approvedQuarters, $hours->unapprovedQuarters, $hours->oldestDay), $this->queries->unbilledUntil($day), ); } }