wip: booking summary for step 1

This commit is contained in:
Björn Fromme
2025-07-24 11:59:27 +02:00
parent 3f94c51bc8
commit 7b1f2e7468
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,
];
}
}