Files

24 lines
736 B
PHP
Raw Permalink Normal View History

2026-10-05 18:10:18 -04:00
<?php
declare(strict_types=1);
namespace Pterodactyl\Contracts\Databases;
use Pterodactyl\Models\DatabaseHost;
use Throwable;
interface UpdatesDatabaseHosts
{
2026-10-11 07:27:47 -04:00
/**
2026-10-11 23:50:53 -04:00
* The host is saved once the Panel has connected to it with the new credentials. The input
* is validated here and takes the fields a host is created with, required ones included; a
* blank password keeps the stored one, and a host given no node_id becomes global. Extension
* field values go under `extensions` as ValidatedExtensionValues.
2026-10-11 07:27:47 -04:00
*
2026-10-11 19:54:55 -04:00
* @param array<string, mixed> $input the fields a host is created with
2026-10-11 07:27:47 -04:00
*
2026-10-05 18:10:18 -04:00
* @throws Throwable
*/
2026-10-11 07:27:47 -04:00
public function update(DatabaseHost $host, array $input): DatabaseHost;
2026-10-05 18:10:18 -04:00
}