feat: selectable drop-offs for inbound bus travel
This commit is contained in:
@@ -32,6 +32,8 @@ class ParticipantDto
|
||||
'transportationOutbound',
|
||||
'transportationInbound',
|
||||
'pickup',
|
||||
'differentDropOff',
|
||||
'dropOff',
|
||||
'parking',
|
||||
'licensePlate',
|
||||
'bulkInsuranceBooking',
|
||||
@@ -106,6 +108,12 @@ class ParticipantDto
|
||||
// Pickup location (applies to both directions)
|
||||
public ?Pickup $pickup = null;
|
||||
|
||||
// Drop-off location (for inbound/return direction)
|
||||
public ?Pickup $dropOff = null;
|
||||
|
||||
// UI-only flag: true when user selected a different drop-off location (BUS+BUS scenario)
|
||||
public bool $differentDropOff = false;
|
||||
|
||||
// Parking service for self-organized transportation (boolean: true if parking requested)
|
||||
public bool $parking = false;
|
||||
|
||||
@@ -242,6 +250,19 @@ class ParticipantDto
|
||||
return $this->dateOfBirth->diff($referenceDate)->y;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if any transportation-related data is present for summary display.
|
||||
*/
|
||||
public function hasTransportationData(): bool
|
||||
{
|
||||
return null !== $this->transportationOutbound
|
||||
|| null !== $this->transportationInbound
|
||||
|| null !== $this->pickup
|
||||
|| null !== $this->dropOff
|
||||
|| true === $this->parking
|
||||
|| null !== $this->licensePlate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the participant has selected an insurance.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user