mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-10-26 08:06:52 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			781 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			781 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace Pterodactyl\Contracts\Repository;
 | |
| 
 | |
| use Pterodactyl\Models\Subuser;
 | |
| 
 | |
| interface SubuserRepositoryInterface extends RepositoryInterface
 | |
| {
 | |
|     /**
 | |
|      * Return a subuser with the associated server relationship.
 | |
|      */
 | |
|     public function loadServerAndUserRelations(Subuser $subuser, bool $refresh = false): Subuser;
 | |
| 
 | |
|     /**
 | |
|      * Return a subuser with the associated permissions relationship.
 | |
|      */
 | |
|     public function getWithPermissions(Subuser $subuser, bool $refresh = false): Subuser;
 | |
| 
 | |
|     /**
 | |
|      * Return a subuser and associated permissions given a user_id and server_id.
 | |
|      *
 | |
|      * @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
 | |
|      */
 | |
|     public function getWithPermissionsUsingUserAndServer(int $user, int $server): Subuser;
 | |
| }
 | 
