Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/app/Contracts/Repository/SubuserRepositoryInterface.php
10279 views
1
<?php
2
3
namespace Pterodactyl\Contracts\Repository;
4
5
use Pterodactyl\Models\Subuser;
6
7
interface SubuserRepositoryInterface extends RepositoryInterface
8
{
9
/**
10
* Return a subuser with the associated server relationship.
11
*/
12
public function loadServerAndUserRelations(Subuser $subuser, bool $refresh = false): Subuser;
13
14
/**
15
* Return a subuser with the associated permissions relationship.
16
*/
17
public function getWithPermissions(Subuser $subuser, bool $refresh = false): Subuser;
18
19
/**
20
* Return a subuser and associated permissions given a user_id and server_id.
21
*
22
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
23
*/
24
public function getWithPermissionsUsingUserAndServer(int $user, int $server): Subuser;
25
}
26
27