wip: refactor
This commit is contained in:
1 parent
64d51c01b2
commit
3f94c51bc8
21 files changed
+395
-110
No files matched your search
@@ -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