Files
pterodactyl-panel/app/Contracts/Eggs/UpdatesEggInstallScripts.php
2026-10-12 05:18:58 -04:00

22 lines
618 B
PHP

<?php
declare(strict_types=1);
namespace Pterodactyl\Contracts\Eggs;
use Pterodactyl\Exceptions\Service\Egg\InvalidCopyFromException;
use Pterodactyl\Models\Egg;
interface UpdatesEggInstallScripts
{
/**
* The input is validated here, and only the fields given are changed. An egg to copy the
* script from must have a script of its own.
*
* @param array<string, mixed> $input any of script_install, script_is_privileged, script_entry, script_container and copy_script_from
*
* @throws InvalidCopyFromException
*/
public function update(Egg $egg, array $input): Egg;
}