2017-09-10 04:55:21 +00:00
|
|
|
<?php
|
|
|
|
|
2017-09-13 04:45:19 +00:00
|
|
|
namespace Pterodactyl\Contracts\Repository;
|
2017-09-10 04:55:21 +00:00
|
|
|
|
2017-10-28 02:42:53 +00:00
|
|
|
use Pterodactyl\Models\Schedule;
|
|
|
|
use Illuminate\Support\Collection;
|
|
|
|
|
2017-09-13 04:45:19 +00:00
|
|
|
interface ScheduleRepositoryInterface extends RepositoryInterface
|
2017-09-10 04:55:21 +00:00
|
|
|
{
|
2017-09-13 04:45:19 +00:00
|
|
|
/**
|
|
|
|
* Return all of the schedules for a given server.
|
|
|
|
*
|
|
|
|
* @param int $server
|
2017-10-28 02:42:53 +00:00
|
|
|
* @return \Illuminate\Support\Collection
|
2017-09-13 04:45:19 +00:00
|
|
|
*/
|
2017-10-28 02:42:53 +00:00
|
|
|
public function findServerSchedules(int $server): Collection;
|
2017-09-10 04:55:21 +00:00
|
|
|
|
2017-09-13 04:45:19 +00:00
|
|
|
/**
|
|
|
|
* Return a schedule model with all of the associated tasks as a relationship.
|
|
|
|
*
|
|
|
|
* @param int $schedule
|
2017-10-28 02:42:53 +00:00
|
|
|
* @return \Pterodactyl\Models\Schedule
|
|
|
|
*
|
|
|
|
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
2017-09-13 04:45:19 +00:00
|
|
|
*/
|
2017-10-28 02:42:53 +00:00
|
|
|
public function getScheduleWithTasks(int $schedule): Schedule;
|
2017-09-10 04:55:21 +00:00
|
|
|
}
|