feat: add raw contingent availability endpoint

This commit is contained in:
fromme committed 2026-10-29 11:19:31 +01:00
1 parent 7c8dbeef48
commit ec36b61275
6 files changed
+189 -12

No files matched your search

+2 -2
View File
@@ -41,14 +41,14 @@ class ContingentSnapshotReader
* Per-day statuses keyed by Y-m-d, or null when there is no usable snapshot for this hotel.
*
* Days inside the range that the snapshot does not cover are simply absent from the map;
* what that means is the caller's decision.
* what that means is the caller's decision. A null dateTo reads to the end of the snapshot.
*
* @return array<string, ContingentStatus>|null
*/
public function statusesFor(
Accommodation $accommodation,
\DateTimeImmutable $dateFrom,
\DateTimeImmutable $dateTo,
?\DateTimeImmutable $dateTo,
): ?array {
$hotelCode = $accommodation->getCalendarCode();