2017-09-09 23:55:21 -05:00
|
|
|
<?php
|
|
|
|
|
2017-09-12 23:45:19 -05:00
|
|
|
namespace Pterodactyl\Contracts\Repository;
|
2017-09-09 23:55:21 -05:00
|
|
|
|
2017-10-27 21:42:53 -05:00
|
|
|
use Pterodactyl\Models\Schedule;
|
|
|
|
use Illuminate\Support\Collection;
|
|
|
|
|
2017-09-12 23:45:19 -05:00
|
|
|
interface ScheduleRepositoryInterface extends RepositoryInterface
|
2017-09-09 23:55:21 -05:00
|
|
|
{
|
2017-09-12 23:45:19 -05:00
|
|
|
/**
|
2022-10-14 10:59:20 -06:00
|
|
|
* Return all the schedules for a given server.
|
2017-09-12 23:45:19 -05:00
|
|
|
*/
|
2017-10-27 21:42:53 -05:00
|
|
|
public function findServerSchedules(int $server): Collection;
|
2017-09-09 23:55:21 -05:00
|
|
|
|
2017-09-12 23:45:19 -05:00
|
|
|
/**
|
2022-10-14 10:59:20 -06:00
|
|
|
* Return a schedule model with all the associated tasks as a relationship.
|
2017-09-12 23:45:19 -05:00
|
|
|
*
|
2017-10-27 21:42:53 -05:00
|
|
|
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
2017-09-12 23:45:19 -05:00
|
|
|
*/
|
2017-10-27 21:42:53 -05:00
|
|
|
public function getScheduleWithTasks(int $schedule): Schedule;
|
2017-09-09 23:55:21 -05:00
|
|
|
}
|