feat: comprehensive booking overview for confirmation
This commit is contained in:
1 parent
c89bda86b7
commit
0f4b16c194
4 files changed
+239
-82
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user