2017-07-03 04:29:58 +02:00
|
|
|
<?php
|
2017-09-26 04:43:01 +02:00
|
|
|
/**
|
2017-07-03 04:29:58 +02:00
|
|
|
* Pterodactyl - Panel
|
|
|
|
* Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com>.
|
|
|
|
*
|
2017-09-26 04:43:01 +02:00
|
|
|
* This software is licensed under the terms of the MIT license.
|
|
|
|
* https://opensource.org/licenses/MIT
|
2017-07-03 04:29:58 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
namespace Pterodactyl\Contracts\Repository;
|
|
|
|
|
2017-10-07 06:57:53 +02:00
|
|
|
use Pterodactyl\Models\Nest;
|
2017-10-03 05:51:13 +02:00
|
|
|
|
2017-10-07 06:57:53 +02:00
|
|
|
interface NestRepositoryInterface extends RepositoryInterface
|
2017-07-03 04:29:58 +02:00
|
|
|
{
|
2017-07-08 21:07:51 +02:00
|
|
|
/**
|
2017-10-07 06:57:53 +02:00
|
|
|
* Return a nest or all nests with their associated eggs, variables, and packs.
|
2017-07-08 21:07:51 +02:00
|
|
|
*
|
2017-08-22 05:10:48 +02:00
|
|
|
* @param int $id
|
2017-10-07 06:57:53 +02:00
|
|
|
* @return \Illuminate\Database\Eloquent\Collection|\Pterodactyl\Models\Nest
|
2017-10-04 06:31:04 +02:00
|
|
|
*
|
|
|
|
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
2017-07-08 21:07:51 +02:00
|
|
|
*/
|
2017-10-07 06:57:53 +02:00
|
|
|
public function getWithEggs(int $id = null);
|
2017-10-03 05:51:13 +02:00
|
|
|
|
|
|
|
/**
|
2017-10-07 06:57:53 +02:00
|
|
|
* Return a nest or all nests and the count of eggs, packs, and servers for that nest.
|
2017-10-03 05:51:13 +02:00
|
|
|
*
|
|
|
|
* @param int|null $id
|
2017-10-07 06:57:53 +02:00
|
|
|
* @return \Pterodactyl\Models\Nest|\Illuminate\Database\Eloquent\Collection
|
2017-10-04 06:31:04 +02:00
|
|
|
*
|
|
|
|
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
2017-10-03 05:51:13 +02:00
|
|
|
*/
|
2017-10-04 06:31:04 +02:00
|
|
|
public function getWithCounts(int $id = null);
|
2017-08-16 05:21:47 +02:00
|
|
|
|
|
|
|
/**
|
2017-10-07 06:57:53 +02:00
|
|
|
* Return a nest along with its associated eggs and the servers relation on those eggs.
|
2017-08-16 05:21:47 +02:00
|
|
|
*
|
2017-08-22 05:10:48 +02:00
|
|
|
* @param int $id
|
2017-10-07 06:57:53 +02:00
|
|
|
* @return \Pterodactyl\Models\Nest
|
2017-10-04 06:31:04 +02:00
|
|
|
*
|
|
|
|
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
2017-08-16 05:21:47 +02:00
|
|
|
*/
|
2017-10-07 06:57:53 +02:00
|
|
|
public function getWithEggServers(int $id): Nest;
|
2017-07-03 04:29:58 +02:00
|
|
|
}
|