Files
2026-10-12 05:18:58 -04:00

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;
}