Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/app/Contracts/Repository/NestRepositoryInterface.php
10262 views
1
<?php
2
3
namespace Pterodactyl\Contracts\Repository;
4
5
use Pterodactyl\Models\Nest;
6
use Illuminate\Database\Eloquent\Collection;
7
8
interface NestRepositoryInterface extends RepositoryInterface
9
{
10
/**
11
* Return a nest or all nests with their associated eggs and variables.
12
*
13
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
14
*/
15
public function getWithEggs(?int $id = null): Collection|Nest;
16
17
/**
18
* Return a nest or all nests and the count of eggs and servers for that nest.
19
*
20
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
21
*/
22
public function getWithCounts(?int $id = null): Collection|Nest;
23
24
/**
25
* Return a nest along with its associated eggs and the servers relation on those eggs.
26
*
27
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
28
*/
29
public function getWithEggServers(int $id): Nest;
30
}
31
32