mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-02 12:25:44 -05:00
21 lines
668 B
PHP
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;
|
|
}
|