Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/app/Contracts/Repository/ScheduleRepositoryInterface.php
10262 views
1
<?php
2
3
namespace Pterodactyl\Contracts\Repository;
4
5
use Pterodactyl\Models\Schedule;
6
use Illuminate\Support\Collection;
7
8
interface ScheduleRepositoryInterface extends RepositoryInterface
9
{
10
/**
11
* Return all the schedules for a given server.
12
*/
13
public function findServerSchedules(int $server): Collection;
14
15
/**
16
* Return a schedule model with all the associated tasks as a relationship.
17
*
18
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
19
*/
20
public function getScheduleWithTasks(int $schedule): Schedule;
21
}
22
23