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

23 lines
502 B
PHP

<?php
declare(strict_types=1);
namespace Pterodactyl\Contracts\Schedules;
use Pterodactyl\Models\Schedule;
use Pterodactyl\Models\Task;
use Throwable;
interface UpdatesScheduleTasks
{
/**
* Updates the task and, when its position changes, shifts the tasks between the
* old and new positions to keep the sequence contiguous.
*
* @param TaskData $data
*
* @throws Throwable
*/
public function update(Schedule $schedule, Task $task, array $data): Task;
}