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

19 lines
388 B
PHP

<?php
declare(strict_types=1);
namespace Pterodactyl\Contracts\Servers;
use Pterodactyl\Models\Server;
use Throwable;
interface TogglesServerSuspension
{
public const string ACTION_SUSPEND = 'suspend';
public const string ACTION_UNSUSPEND = 'unsuspend';
/** @throws Throwable */
public function toggle(Server $server, string $action = self::ACTION_SUSPEND): void;
}