mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-05 22:05:47 -05:00
Co-authored-by: Anthony <anthony@infraly.co> Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
20 lines
467 B
PHP
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;
|
|
}
|