mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-01 11:55:51 -05:00
23 lines
586 B
PHP
23 lines
586 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pterodactyl\Contracts\Schedules;
|
|
|
|
use Pterodactyl\Exceptions\DisplayException;
|
|
use Pterodactyl\Models\Schedule;
|
|
use Pterodactyl\Models\Server;
|
|
|
|
interface CreatesSchedules
|
|
{
|
|
/**
|
|
* The input is validated here, and cron fields that do not form a valid expression are
|
|
* refused.
|
|
*
|
|
* @param array<string, mixed> $input name, is_active, minute, hour, day_of_month, month, day_of_week and only_when_online
|
|
*
|
|
* @throws DisplayException
|
|
*/
|
|
public function create(Server $server, array $input): Schedule;
|
|
}
|