chore: streamline property naming
This commit is contained in:
@@ -39,8 +39,8 @@ class Booking
|
||||
public array $transportationServices = [];
|
||||
public array $additionalServices = [];
|
||||
public array $rooms = [];
|
||||
public array $pickupsTo = [];
|
||||
public array $pickupsFro = [];
|
||||
public array $pickupsOutbound = [];
|
||||
public array $pickupsInbound = [];
|
||||
public array $surcharges = [];
|
||||
public ?int $invoiceNumber = null;
|
||||
public ?float $totalPrice = null;
|
||||
@@ -106,7 +106,7 @@ class Booking
|
||||
* Retrieves transportation service for a specific participant and direction.
|
||||
*
|
||||
* Finds the transportation service that matches the participant index
|
||||
* and travel direction (e.g., 'H' for outbound, 'R' for return).
|
||||
* and travel direction (e.g., 'H' for outbound, 'R' for inbound).
|
||||
*
|
||||
* @param int $participantIndex The participant index to search for
|
||||
* @param string $direction The travel direction ('H' or 'R')
|
||||
@@ -141,7 +141,7 @@ class Booking
|
||||
*/
|
||||
public function getPickupForParticipant(int $participantIndex): ?Pickup
|
||||
{
|
||||
foreach ($this->pickupsTo as $pickup) {
|
||||
foreach ($this->pickupsOutbound as $pickup) {
|
||||
if (in_array($participantIndex, $pickup->mapping)) {
|
||||
return $pickup;
|
||||
}
|
||||
|
||||
@@ -63,10 +63,10 @@ class Travel
|
||||
public bool $transportationServicesMutable = true;
|
||||
|
||||
#[Groups(['api:single'])]
|
||||
public array $pickupsTo = [];
|
||||
public array $pickupsOutbound = [];
|
||||
|
||||
#[Groups(['api:single'])]
|
||||
public array $pickupsFro = [];
|
||||
public array $pickupsInbound = [];
|
||||
|
||||
#[Groups(['api:single'])]
|
||||
public bool $pickupsMutable = true;
|
||||
|
||||
Reference in New Issue
Block a user