mirror of
https://github.com/koel/koel
synced 2024-11-24 21:23:06 +00:00
24 lines
430 B
PHP
24 lines
430 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Repositories;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
use Illuminate\Support\Collection;
|
||
|
|
||
|
interface RepositoryInterface
|
||
|
{
|
||
|
public function getModelClass(): string;
|
||
|
|
||
|
/**
|
||
|
* @param int|string $id
|
||
|
*/
|
||
|
public function getOneById($id): ?Model;
|
||
|
|
||
|
/**
|
||
|
* @param int[]|string[] $ids
|
||
|
*/
|
||
|
public function getByIds(array $ids): Collection;
|
||
|
|
||
|
public function getAll(): Collection;
|
||
|
}
|