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>
23 lines
502 B
PHP
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;
|
|
}
|