getRepository('Location')->findAll(); return $locs; } public static function EchoLocations() { $locs = Location::GetLocations(); echo ""; } public static function Add($name, $desc) { $loc = new Location(); $loc->name = $name; $loc->description = $desc; $loc->Save(); echo "Локация создана"; } public function getName(): string { return $this->name; } public function setName(string $name): self { $this->name = $name; return $this; } }