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

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