placeMapper->findPlaceForUser($this->userId, $name); return new PlaceRoot($this->placeMapper, $this->reverseGeoCoderService, $placeInfo, $this->userId, $this->rootFolder); } catch (NotFoundException $ex) { throw new NotFound("Place $name does not exist", 0, $ex); } } /** * @return PlaceRoot[] */ public function getChildren(): array { if ($this->children === null) { $this->children = array_map( fn (PlaceInfo $placeInfo): PlaceRoot => new PlaceRoot($this->placeMapper, $this->reverseGeoCoderService, $placeInfo, $this->userId, $this->rootFolder), $this->placeMapper->findPlacesForUser($this->userId) ); } return $this->children; } public function childExists($name): bool { try { $this->getChild($name); return true; } catch (NotFound) { return false; } } public function getLastModified(): int { return 0; } }