2018-08-29 06:15:11 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Repositories;
|
|
|
|
|
2019-06-16 21:14:37 +00:00
|
|
|
use Illuminate\Database\Eloquent\Collection;
|
2018-08-29 06:15:11 +00:00
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
interface RepositoryInterface
|
|
|
|
{
|
|
|
|
public function getOneById($id): ?Model;
|
|
|
|
|
2020-12-22 20:11:22 +00:00
|
|
|
/** @return Collection|array<Model> */
|
2018-08-29 06:15:11 +00:00
|
|
|
public function getByIds(array $ids): Collection;
|
|
|
|
|
2020-12-22 20:11:22 +00:00
|
|
|
/** @return Collection|array<Model> */
|
2018-08-29 06:15:11 +00:00
|
|
|
public function getAll(): Collection;
|
|
|
|
}
|