Path: blob/1.0-develop/app/Contracts/Repository/NestRepositoryInterface.php
10262 views
<?php12namespace Pterodactyl\Contracts\Repository;34use Pterodactyl\Models\Nest;5use Illuminate\Database\Eloquent\Collection;67interface NestRepositoryInterface extends RepositoryInterface8{9/**10* Return a nest or all nests with their associated eggs and variables.11*12* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException13*/14public function getWithEggs(?int $id = null): Collection|Nest;1516/**17* Return a nest or all nests and the count of eggs and servers for that nest.18*19* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException20*/21public function getWithCounts(?int $id = null): Collection|Nest;2223/**24* Return a nest along with its associated eggs and the servers relation on those eggs.25*26* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException27*/28public function getWithEggServers(int $id): Nest;29}303132