mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-04 05:15:41 -05:00
Co-authored-by: Anthony <anthony@infraly.co> Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
17 lines
344 B
PHP
17 lines
344 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pterodactyl\Contracts\Servers;
|
|
|
|
use Pterodactyl\Models\Server;
|
|
|
|
interface TogglesServerSuspension
|
|
{
|
|
public const string ACTION_SUSPEND = 'suspend';
|
|
|
|
public const string ACTION_UNSUSPEND = 'unsuspend';
|
|
|
|
public function toggle(Server $server, string $action = self::ACTION_SUSPEND): void;
|
|
}
|