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

24 lines
689 B
PHP

<?php
declare(strict_types=1);
namespace Pterodactyl\Contracts\Servers;
use Pterodactyl\Models\Server;
use Throwable;
interface UpdatesServerDetails
{
/**
* The input is validated here, and every detail is replaced: an external id left out is
* cleared and a description left out becomes empty. A new owner takes the server's SFTP
* access from the previous one. Extension field values go under `extensions` as
* ValidatedExtensionValues.
*
* @param array<string, mixed> $input name and owner_id, and optionally external_id and description
*
* @throws Throwable
*/
public function update(Server $server, array $input): Server;
}