Files
panel-pelican-dev/app/Contracts/Repository/NestRepositoryInterface.php

31 lines
885 B
PHP
Raw Normal View History

<?php
2024-03-12 22:39:16 -04:00
namespace App\Contracts\Repository;
2024-03-12 22:39:16 -04:00
use App\Models\Nest;
use Illuminate\Database\Eloquent\Collection;
2017-10-02 22:51:13 -05:00
interface NestRepositoryInterface extends RepositoryInterface
{
/**
* Return a nest or all nests with their associated eggs and variables.
*
2024-03-12 22:39:16 -04:00
* @throws \App\Exceptions\Repository\RecordNotFoundException
*/
public function getWithEggs(int $id = null): Collection|Nest;
2017-10-02 22:51:13 -05:00
/**
* Return a nest or all nests and the count of eggs and servers for that nest.
2017-10-02 22:51:13 -05:00
*
2024-03-12 22:39:16 -04:00
* @throws \App\Exceptions\Repository\RecordNotFoundException
2017-10-02 22:51:13 -05:00
*/
public function getWithCounts(int $id = null): Collection|Nest;
/**
* Return a nest along with its associated eggs and the servers relation on those eggs.
*
2024-03-12 22:39:16 -04:00
* @throws \App\Exceptions\Repository\RecordNotFoundException
*/
public function getWithEggServers(int $id): Nest;
}