Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/app/Contracts/Repository/TaskRepositoryInterface.php
10284 views
1
<?php
2
3
namespace Pterodactyl\Contracts\Repository;
4
5
use Pterodactyl\Models\Task;
6
7
interface TaskRepositoryInterface extends RepositoryInterface
8
{
9
/**
10
* Get a task and the server relationship for that task.
11
*
12
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
13
*/
14
public function getTaskForJobProcess(int $id): Task;
15
16
/**
17
* Returns the next task in a schedule.
18
*/
19
public function getNextTask(int $schedule, int $index): ?Task;
20
}
21
22