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