mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-11-04 09:36:52 +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;
 | 
						|
}
 |