2017-07-20 01:49:41 +00:00
|
|
|
<?php
|
|
|
|
|
2017-08-19 03:19:06 +00:00
|
|
|
namespace Pterodactyl\Contracts\Repository;
|
2017-07-20 01:49:41 +00:00
|
|
|
|
2018-01-05 04:49:50 +00:00
|
|
|
use Pterodactyl\Models\Pack;
|
|
|
|
use Illuminate\Contracts\Pagination\LengthAwarePaginator;
|
2017-08-19 03:19:06 +00:00
|
|
|
use Pterodactyl\Contracts\Repository\Attributes\SearchableInterface;
|
2017-07-20 01:49:41 +00:00
|
|
|
|
2017-08-19 03:19:06 +00:00
|
|
|
interface PackRepositoryInterface extends RepositoryInterface, SearchableInterface
|
2017-07-20 01:49:41 +00:00
|
|
|
{
|
2017-08-21 00:23:50 +00:00
|
|
|
/**
|
|
|
|
* Return a pack with the associated server models attached to it.
|
|
|
|
*
|
2018-01-05 04:49:50 +00:00
|
|
|
* @param \Pterodactyl\Models\Pack $pack
|
2019-09-06 04:32:57 +00:00
|
|
|
* @param bool $refresh
|
2018-01-05 04:49:50 +00:00
|
|
|
* @return \Pterodactyl\Models\Pack
|
2017-08-21 00:23:50 +00:00
|
|
|
*/
|
2018-01-05 04:49:50 +00:00
|
|
|
public function loadServerData(Pack $pack, bool $refresh = false): Pack;
|
2017-08-21 00:23:50 +00:00
|
|
|
|
2017-08-19 03:19:06 +00:00
|
|
|
/**
|
2018-01-05 04:49:50 +00:00
|
|
|
* Return a paginated listing of packs with their associated egg and server count.
|
2017-08-21 00:23:50 +00:00
|
|
|
*
|
2018-01-05 04:49:50 +00:00
|
|
|
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
2017-08-19 03:19:06 +00:00
|
|
|
*/
|
2018-01-05 04:49:50 +00:00
|
|
|
public function paginateWithEggAndServerCount(): LengthAwarePaginator;
|
2017-07-20 01:49:41 +00:00
|
|
|
}
|