WIP: Implement new role house manager

This commit is contained in:
Björn Fromme committed 2023-11-03 13:00:52 +01:00
1 parent 392ea3f16f
commit 538d39f63e
7 files changed
+84 -14

No files matched your search

@@ -36,4 +36,15 @@ class HotelDataProvider
{
return $this->getAll()[$busProId] ?? null;
}
public function findByCode(string $code): ?Hotel
{
foreach ($this->getAll() as $hotel) {
if ($code === $hotel->getCode()) {
return $hotel;
}
}
return null;
}
}