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>
25 lines
578 B
PHP
25 lines
578 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pterodactyl\Contracts\Schedules;
|
|
|
|
use Pterodactyl\Exceptions\Service\ServiceLimitExceededException;
|
|
use Pterodactyl\Models\Schedule;
|
|
use Pterodactyl\Models\Task;
|
|
use Throwable;
|
|
|
|
interface CreatesScheduleTasks
|
|
{
|
|
/**
|
|
* Appends a task to the schedule, or slots it into the requested position by
|
|
* shifting the tasks that follow it.
|
|
*
|
|
* @param TaskData $data
|
|
*
|
|
* @throws ServiceLimitExceededException
|
|
* @throws Throwable
|
|
*/
|
|
public function create(Schedule $schedule, array $data): Task;
|
|
}
|