More repository/service/refactor changes
This commit is contained in:
parent
2c77d5c44d
commit
b8d7d99096
44 changed files with 977 additions and 669 deletions
|
@ -26,5 +26,28 @@ namespace Pterodactyl\Contracts\Repository;
|
|||
|
||||
interface ServiceOptionRepositoryInterface extends RepositoryInterface
|
||||
{
|
||||
//
|
||||
/**
|
||||
* Return a service option with the variables relation attached.
|
||||
*
|
||||
* @param int $id
|
||||
* @return mixed
|
||||
*/
|
||||
public function getWithVariables($id);
|
||||
|
||||
/**
|
||||
* Return a service option with the copyFrom relation loaded onto the model.
|
||||
*
|
||||
* @param int $id
|
||||
* @return mixed
|
||||
*/
|
||||
public function getWithCopyFrom($id);
|
||||
|
||||
/**
|
||||
* Confirm a copy script belongs to the same service as the item trying to use it.
|
||||
*
|
||||
* @param int $copyFromId
|
||||
* @param int $service
|
||||
* @return bool
|
||||
*/
|
||||
public function isCopiableScript($copyFromId, $service);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue