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

21 lines
491 B
PHP
Raw Permalink 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.
*/
public function getNextTask(int $schedule, int $index): ?Task;
}