2017-09-10 04:55:21 +00:00
|
|
|
<?php
|
2017-09-26 02:43:01 +00:00
|
|
|
/**
|
2017-09-10 04:55:21 +00:00
|
|
|
* Pterodactyl - Panel
|
|
|
|
* Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com>.
|
|
|
|
*
|
2017-09-26 02:43:01 +00:00
|
|
|
* This software is licensed under the terms of the MIT license.
|
|
|
|
* https://opensource.org/licenses/MIT
|
2017-09-10 04:55:21 +00:00
|
|
|
*/
|
|
|
|
|
2017-09-13 04:45:19 +00:00
|
|
|
namespace Pterodactyl\Contracts\Repository;
|
2017-09-10 04:55:21 +00:00
|
|
|
|
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
|
|
|
|
* @return \Illuminate\Database\Eloquent\Collection
|
|
|
|
*/
|
|
|
|
public function getServerSchedules($server);
|
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
|
|
|
|
* @return \Illuminate\Support\Collection
|
|
|
|
*/
|
|
|
|
public function getScheduleWithTasks($schedule);
|
2017-09-17 04:10:00 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Return all of the schedules that should be processed.
|
|
|
|
*
|
|
|
|
* @param string $timestamp
|
|
|
|
* @return \Illuminate\Support\Collection
|
|
|
|
*/
|
|
|
|
public function getSchedulesToProcess($timestamp);
|
2017-09-10 04:55:21 +00:00
|
|
|
}
|