misc_pterodactyl-panel/app/Contracts/Repository/TaskRepositoryInterface.php

23 lines
536 B
PHP
Raw Normal View History

<?php
namespace Pterodactyl\Contracts\Repository;
use Pterodactyl\Models\Task;
interface TaskRepositoryInterface extends RepositoryInterface
{
2017-09-17 04:10:00 +00:00
/**
* Get a task and the server relationship for that task.
*
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
*/
public function getTaskForJobProcess(int $id): Task;
2017-09-17 04:10:00 +00:00
/**
* Returns the next task in a schedule.
*
2020-06-28 22:43:44 +00:00
* @return \Pterodactyl\Models\Task|null
2017-09-17 04:10:00 +00:00
*/
public function getNextTask(int $schedule, int $index);
}