wip: refactor
This commit is contained in:
@@ -47,4 +47,11 @@ interface BookingDtoInterface
|
||||
* @return ParticipantDto|null The participant DTO or null if not found
|
||||
*/
|
||||
public function getParticipant(int $index): ?ParticipantDto;
|
||||
|
||||
/**
|
||||
* Gets all selected rooms for the booking.
|
||||
*
|
||||
* @return array<int, RoomSelectionDto> Array of selected room DTOs (may be empty for edit DTOs)
|
||||
*/
|
||||
public function getSelectedRooms(): array;
|
||||
}
|
||||
@@ -83,4 +83,14 @@ class BookingEditDto implements BookingDtoInterface
|
||||
{
|
||||
return $this->participants[$index] ?? null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets all selected rooms for the booking (edit context).
|
||||
*
|
||||
* @return array<int, RoomSelectionDto> Always returns an empty array for edit DTOs unless implemented.
|
||||
*/
|
||||
public function getSelectedRooms(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user