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

21 lines
678 B
PHP

<?php
declare(strict_types=1);
namespace Pterodactyl\Contracts\Eggs;
use Pterodactyl\Models\EggVariable;
interface UpdatesEggVariables
{
/**
* The input is validated here and takes the fields a variable is created with, required ones
* included; a description left out is blanked, and the variable can only be seen or edited
* by users when options lists user_viewable or user_editable. The variable keeps its own
* environment variable name without it counting as taken.
*
* @param array<string, mixed> $input the fields a variable is created with
*/
public function update(EggVariable $variable, array $input): EggVariable;
}