wip: booking summary for step 1
This commit is contained in:
@@ -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