Add P,F,B,S names to find_place_by_name

This commit is contained in:
Kouril42
2023-02-28 16:55:32 +01:00
parent 68135b4567
commit 679adf5bb4
3 changed files with 27 additions and 13 deletions
+8
View File
@@ -165,6 +165,14 @@ class Place
}
return $response;
}
public function getFloorsNameAndId(): array
{
$response = array();
foreach ($this->floors as $f) {
$response[] = array('id' => $f->getId(), 'name' => $f->getName());
}
return $response;
}
public function addFloor(Floor $floor): self
{