mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-01 11:55:51 -05:00
24 lines
689 B
PHP
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;
|
|
}
|