WIP: Implement new role house manager
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user