feat: comprehensive booking overview for confirmation

This commit is contained in:
Björn Fromme committed 2026-03-16 11:59:10 +01:00
1 parent c89bda86b7
commit 0f4b16c194
4 files changed
+239 -82

No files matched your search

+18
View File
@@ -228,4 +228,22 @@ class Travel
return $result;
}
/**
* Retrieves a room by its ID.
*
* @param int|null $roomId The room ID to search for
*
* @return Room|null The room with the matching ID, or null if not found
*/
public function getRoomById(?int $roomId): ?Room
{
if (null === $roomId) {
return null;
}
$rooms = $this->getRoomsByIds([$roomId]);
return false === empty($rooms) ? reset($rooms) : null;
}
}