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

20 lines
510 B
PHP

<?php
declare(strict_types=1);
namespace Pterodactyl\Contracts\Eggs;
use Pterodactyl\Models\Egg;
interface ReordersEggVariables
{
/**
* Give the egg's variables the sort order of their position in the list. The ids are
* validated here: each is an integer or a numeric string, listed once. An id of a variable
* on another egg is skipped.
*
* @param list<mixed> $order the variable ids in their new order
*/
public function reorder(Egg $egg, array $order): void;
}