Files
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00

24 lines
672 B
PHP

<?php
declare(strict_types=1);
namespace Pterodactyl\Contracts\Servers;
use Pterodactyl\Models\Egg;
use Pterodactyl\Models\Server;
use Throwable;
interface ChangesServerEgg
{
/**
* Move a server onto another egg. The startup command and Docker image are
* reset to the new egg's defaults and the variable values stored for the
* previous egg are discarded. With $keepVariables, values whose environment
* name also exists on the new egg are carried over when they still satisfy
* the new variable's rules.
*
* @throws Throwable
*/
public function change(Server $server, Egg $egg, bool $keepVariables = false): Server;
}