Files
pterodactyl-panel/app/Contracts/Repository/NestRepositoryInterface.php
T

31 lines
927 B
PHP
Raw Normal View History

<?php
namespace Pterodactyl\Contracts\Repository;
2017-10-06 23:57:53 -05:00
use Pterodactyl\Models\Nest;
2022-10-14 10:59:20 -06:00
use Illuminate\Database\Eloquent\Collection;
2017-10-02 22:51:13 -05:00
2017-10-06 23:57:53 -05:00
interface NestRepositoryInterface extends RepositoryInterface
{
/**
* Return a nest or all nests with their associated eggs and variables.
*
2017-10-03 23:31:04 -05:00
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
*/
2024-10-21 19:18:20 -06:00
public function getWithEggs(?int $id = null): Collection|Nest;
2017-10-02 22:51:13 -05:00
/**
* Return a nest or all nests and the count of eggs and servers for that nest.
2017-10-02 22:51:13 -05:00
*
2017-10-03 23:31:04 -05:00
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
2017-10-02 22:51:13 -05:00
*/
2024-10-21 19:18:20 -06:00
public function getWithCounts(?int $id = null): Collection|Nest;
/**
2017-10-06 23:57:53 -05:00
* Return a nest along with its associated eggs and the servers relation on those eggs.
*
2017-10-03 23:31:04 -05:00
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
*/
2017-10-06 23:57:53 -05:00
public function getWithEggServers(int $id): Nest;
}