koel/app/Repositories/RepositoryInterface.php
2022-07-27 20:08:57 +02:00

17 lines
375 B
PHP

<?php
namespace App\Repositories;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Collection;
interface RepositoryInterface
{
public function getOneById($id): ?Model;
/** @return Collection|array<Model> */
public function getByIds(array $ids): Collection;
/** @return Collection|array<Model> */
public function getAll(): Collection;
}