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