wip: form refactoring
This commit is contained in:
@@ -4,8 +4,6 @@ declare(strict_types=1);
|
||||
|
||||
namespace App\Form\Model;
|
||||
|
||||
use App\BusProNet\Model\Travel;
|
||||
|
||||
/**
|
||||
* Interface for unified access to booking data across create and edit workflows.
|
||||
*
|
||||
@@ -23,13 +21,6 @@ interface BookingDtoInterface
|
||||
*/
|
||||
public function getParticipants(): array;
|
||||
|
||||
/**
|
||||
* Gets the travel data for the booking.
|
||||
*
|
||||
* @return Travel The travel data containing services, hotels, and other booking options
|
||||
*/
|
||||
public function getTravel(): Travel;
|
||||
|
||||
/**
|
||||
* Checks if a participant exists at the given index.
|
||||
*
|
||||
@@ -47,11 +38,4 @@ 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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user