Files
pterodactyl-panel/app/Contracts/Servers/CreatesServers.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

28 lines
765 B
PHP

<?php
declare(strict_types=1);
namespace Pterodactyl\Contracts\Servers;
use Illuminate\Validation\ValidationException;
use Pterodactyl\Exceptions\DisplayException;
use Pterodactyl\Exceptions\Service\Deployment\NoViableAllocationException;
use Pterodactyl\Exceptions\Service\Deployment\NoViableNodeException;
use Pterodactyl\Models\Objects\DeploymentObject;
use Pterodactyl\Models\Server;
use Throwable;
interface CreatesServers
{
/**
* @param array<string, ApiValue9> $data
*
* @throws Throwable
* @throws DisplayException
* @throws ValidationException
* @throws NoViableNodeException
* @throws NoViableAllocationException
*/
public function create(array $data, ?DeploymentObject $deployment = null): Server;
}