Path: blob/1.0-develop/app/Contracts/Repository/EggRepositoryInterface.php
10262 views
<?php12namespace Pterodactyl\Contracts\Repository;34use Pterodactyl\Models\Egg;5use Illuminate\Database\Eloquent\Collection;67interface EggRepositoryInterface extends RepositoryInterface8{9/**10* Return an egg with the variables relation attached.11*12* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException13*/14public function getWithVariables(int $id): Egg;1516/**17* Return all eggs and their relations to be used in the daemon API.18*/19public function getAllWithCopyAttributes(): Collection;2021/**22* Return an egg with the scriptFrom and configFrom relations loaded onto the model.23*/24public function getWithCopyAttributes(int|string $value, string $column = 'id'): Egg;2526/**27* Return all the data needed to export a service.28*29* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException30*/31public function getWithExportAttributes(int $id): Egg;3233/**34* Confirm a copy script belongs to the same nest as the item trying to use it.35*/36public function isCopyableScript(int $copyFromId, int $service): bool;37}383940