koel/app/Repositories/RepositoryInterface.php
2020-12-23 12:03:53 +01:00

17 lines
385 B
PHP

<?php
namespace App\Repositories;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
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;
}