Files
pterodactyl-panel/app/Contracts/Transfers/InitiatesTransfers.php
T
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

26 lines
658 B
PHP

<?php
declare(strict_types=1);
namespace Pterodactyl\Contracts\Transfers;
use Pterodactyl\Exceptions\DisplayException;
use Pterodactyl\Models\Node;
use Pterodactyl\Models\Server;
use Pterodactyl\Models\ServerTransfer;
use Throwable;
interface InitiatesTransfers
{
/**
* Records the transfer, reserves the target allocations, and tells the destination
* node to begin pulling the server.
*
* @param list<int> $additionalAllocations
*
* @throws DisplayException
* @throws Throwable
*/
public function initiate(Server $server, Node $node, int $allocationId, array $additionalAllocations): ServerTransfer;
}