Path: blob/1.0-develop/app/Contracts/Repository/LocationRepositoryInterface.php
10262 views
<?php12namespace Pterodactyl\Contracts\Repository;34use Pterodactyl\Models\Location;5use Illuminate\Support\Collection;67interface LocationRepositoryInterface extends RepositoryInterface8{9/**10* Return locations with a count of nodes and servers attached to it.11*/12public function getAllWithDetails(): Collection;1314/**15* Return all the available locations with the nodes as a relationship.16*/17public function getAllWithNodes(): Collection;1819/**20* Return all the nodes and their respective count of servers for a location.21*22* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException23*/24public function getWithNodes(int $id): Location;2526/**27* Return a location and the count of nodes in that location.28*29* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException30*/31public function getWithNodeCount(int $id): Location;32}333435