31 lines
675 B
PHP
31 lines
675 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\BusProNet\Model;
|
|
|
|
/**
|
|
* Response model for extended availability endpoint payloads.
|
|
*/
|
|
class ExtendedServiceAvailabilityResponse
|
|
{
|
|
/**
|
|
* @param array<int, ExtendedAvailability> $services
|
|
* @param array<string> $allowedBookingStatus
|
|
*/
|
|
public function __construct(
|
|
private readonly array $services,
|
|
public readonly array $allowedBookingStatus = [],
|
|
public readonly ?string $travelStatus = null,
|
|
) {
|
|
}
|
|
|
|
/**
|
|
* @return array<int, ExtendedAvailability>
|
|
*/
|
|
public function getServices(): array
|
|
{
|
|
return $this->services;
|
|
}
|
|
}
|