wip: booking summary for step 1
This commit is contained in:
1 parent
86e4866d6a
commit
4d51f0334f
4 files changed
+72
-10
No files matched your search
@@ -120,4 +120,21 @@ class BookingService
|
||||
|
||||
return $counts;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a summary of selected rooms and the resulting participant count for a booking.
|
||||
*
|
||||
* @param BookingCreateDto $bookingCreateDto
|
||||
* @return array{selectedRooms: array, participantCount: int}
|
||||
*/
|
||||
public function getRoomSummaryAndParticipantCount(BookingCreateDto $bookingCreateDto): array
|
||||
{
|
||||
$selectedRooms = $bookingCreateDto->getSelectedRooms();
|
||||
$participantCount = $this->getParticipantsCount($selectedRooms, $bookingCreateDto->travel);
|
||||
|
||||
return [
|
||||
'selectedRooms' => $selectedRooms,
|
||||
'participantCount' => $participantCount,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user