feat: persist travel snapshots and refresh extended availability

This commit is contained in:
Björn Fromme committed 2026-03-23 17:29:10 +01:00
1 parent c1ab6d8687
commit bc7fb794bf
31 files changed
+2328 -91

No files matched your search

@@ -0,0 +1,30 @@
<?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;
}
}