wip: booking summary for step 1

This commit is contained in:
Björn Fromme
2026-03-16 11:59:09 +01:00
parent 86e4866d6a
commit 4d51f0334f
4 changed files with 72 additions and 10 deletions
+17
View File
@@ -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,
];
}
}