misc_pterodactyl-panel/app/Contracts/Repository/NestRepositoryInterface.php

31 lines
925 B
PHP
Raw Permalink Normal View History

<?php
namespace Pterodactyl\Contracts\Repository;
use Pterodactyl\Models\Nest;
use Illuminate\Database\Eloquent\Collection;
2017-10-03 03:51:13 +00:00
interface NestRepositoryInterface extends RepositoryInterface
{
/**
* Return a nest or all nests with their associated eggs and variables.
*
2017-10-04 04:31:04 +00:00
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
*/
public function getWithEggs(int $id = null): Collection|Nest;
2017-10-03 03:51:13 +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
*/
public function getWithCounts(int $id = null): Collection|Nest;
/**
* Return a nest along with its associated eggs and the servers relation on those eggs.
*
2017-10-04 04:31:04 +00:00
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
*/
public function getWithEggServers(int $id): Nest;
}