Files
panel-pelican-dev/app/Contracts/Repository/TaskRepositoryInterface.php

21 lines
467 B
PHP
Raw Normal View History

<?php
2024-03-12 22:39:16 -04:00
namespace App\Contracts\Repository;
2024-03-12 22:39:16 -04:00
use App\Models\Task;
interface TaskRepositoryInterface extends RepositoryInterface
{
2017-09-16 23:10:00 -05:00
/**
* Get a task and the server relationship for that task.
*
2024-03-12 22:39:16 -04:00
* @throws \App\Exceptions\Repository\RecordNotFoundException
2017-09-16 23:10:00 -05:00
*/
public function getTaskForJobProcess(int $id): Task;
2017-09-16 23:10:00 -05:00
/**
* Returns the next task in a schedule.
*/
public function getNextTask(int $schedule, int $index): ?Task;
}