Files
pterodactyl-panel/app/Contracts/Schedules/CreatesSchedules.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

20 lines
467 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
{
/**
* @param ScheduleCreationData $data validated schedule attributes with minute/hour/day_of_month/month/day_of_week keys
*
* @throws DisplayException
*/
public function create(Server $server, array $data): Schedule;
}