pelican-panel-mirror/app/Contracts/Repository/TaskRepositoryInterface.php
2024-03-12 22:39:16 -04:00

21 lines
467 B
PHP

<?php
namespace App\Contracts\Repository;
use App\Models\Task;
interface TaskRepositoryInterface extends RepositoryInterface
{
/**
* Get a task and the server relationship for that task.
*
* @throws \App\Exceptions\Repository\RecordNotFoundException
*/
public function getTaskForJobProcess(int $id): Task;
/**
* Returns the next task in a schedule.
*/
public function getNextTask(int $schedule, int $index): ?Task;
}