mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-10-26 08:06:52 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			536 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			536 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace Pterodactyl\Contracts\Repository;
 | |
| 
 | |
| use Pterodactyl\Models\Task;
 | |
| 
 | |
| interface TaskRepositoryInterface extends RepositoryInterface
 | |
| {
 | |
|     /**
 | |
|      * Get a task and the server relationship for that task.
 | |
|      *
 | |
|      * @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
 | |
|      */
 | |
|     public function getTaskForJobProcess(int $id): Task;
 | |
| 
 | |
|     /**
 | |
|      * Returns the next task in a schedule.
 | |
|      *
 | |
|      * @return \Pterodactyl\Models\Task|null
 | |
|      */
 | |
|     public function getNextTask(int $schedule, int $index);
 | |
| }
 | 
