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

21 lines
668 B
PHP

<?php
declare(strict_types=1);
namespace Pterodactyl\Contracts\Eggs;
use Pterodactyl\Models\Egg;
use Pterodactyl\Models\EggVariable;
interface CreatesEggVariables
{
/**
* The input is validated here: the environment variable name must be unique among the egg's
* variables and not one the panel reserves, and the rules must be a valid rule set. Listing
* user_viewable or user_editable in options lets users see or edit the variable.
*
* @param array<string, mixed> $input name, env_variable, rules and default_value, and optionally description and options
*/
public function create(Egg $egg, array $input): EggVariable;
}