mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-23 09:32:29 +01:00
27 lines
835 B
PHP
27 lines
835 B
PHP
<?php
|
|
|
|
namespace Pterodactyl\Contracts\Repository;
|
|
|
|
use Pterodactyl\Models\Pack;
|
|
use Illuminate\Contracts\Pagination\LengthAwarePaginator;
|
|
use Pterodactyl\Contracts\Repository\Attributes\SearchableInterface;
|
|
|
|
interface PackRepositoryInterface extends RepositoryInterface, SearchableInterface
|
|
{
|
|
/**
|
|
* Return a pack with the associated server models attached to it.
|
|
*
|
|
* @param \Pterodactyl\Models\Pack $pack
|
|
* @param bool $refresh
|
|
* @return \Pterodactyl\Models\Pack
|
|
*/
|
|
public function loadServerData(Pack $pack, bool $refresh = false): Pack;
|
|
|
|
/**
|
|
* Return a paginated listing of packs with their associated egg and server count.
|
|
*
|
|
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
|
|
*/
|
|
public function paginateWithEggAndServerCount(): LengthAwarePaginator;
|
|
}
|