WIP: Implement new role house manager

This commit is contained in:
Björn Fromme
2023-11-03 13:00:52 +01:00
parent 392ea3f16f
commit 538d39f63e
7 changed files with 84 additions and 14 deletions
@@ -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;
}
}