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