mirror of
https://github.com/koel/koel
synced 2024-11-24 13:13:05 +00:00
17 lines
375 B
PHP
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;
|
|
}
|