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