Files

26 lines
783 B
PHP
Raw Permalink Normal View History

2026-10-05 18:10:18 -04:00
<?php
declare(strict_types=1);
namespace Pterodactyl\Contracts\Schedules;
2026-10-11 23:50:53 -04:00
use Pterodactyl\Exceptions\Http\HttpForbiddenException;
2026-10-05 18:10:18 -04:00
use Pterodactyl\Models\Schedule;
use Pterodactyl\Models\Task;
use Throwable;
interface UpdatesScheduleTasks
{
/**
2026-10-11 23:50:53 -04:00
* When the task's position changes, the tasks between its old and new positions shift to
* keep the sequence contiguous. The input is validated here, and a backup task is refused
* while the server cannot hold any backups.
2026-10-11 06:11:40 -04:00
*
2026-10-11 19:54:55 -04:00
* @param array<string, mixed> $input action, payload, time_offset, and optionally sequence_id and continue_on_failure
2026-10-05 18:10:18 -04:00
*
2026-10-11 23:50:53 -04:00
* @throws HttpForbiddenException
2026-10-05 18:10:18 -04:00
* @throws Throwable
*/
2026-10-11 06:11:40 -04:00
public function update(Schedule $schedule, Task $task, array $input): Task;
2026-10-05 18:10:18 -04:00
}