2018-08-29 13:15:11 +07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Repositories;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
2022-07-27 17:32:36 +02:00
|
|
|
use Illuminate\Support\Collection;
|
2018-08-29 13:15:11 +07:00
|
|
|
|
|
|
|
interface RepositoryInterface
|
|
|
|
{
|
|
|
|
public function getOneById($id): ?Model;
|
|
|
|
|
2020-12-22 21:11:22 +01:00
|
|
|
/** @return Collection|array<Model> */
|
2024-01-01 12:40:21 +01:00
|
|
|
public function getByIds(array $ids, bool $inThatOrder = false): Collection;
|
2018-08-29 13:15:11 +07:00
|
|
|
|
2020-12-22 21:11:22 +01:00
|
|
|
/** @return Collection|array<Model> */
|
2018-08-29 13:15:11 +07:00
|
|
|
public function getAll(): Collection;
|
|
|
|
}
|