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

28 lines
658 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.
*
* @param int $id
* @return \Pterodactyl\Models\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.
*
* @param int $schedule
* @param int $index
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);
}