mirror of
https://github.com/koel/koel
synced 2024-11-28 06:50:27 +00:00
23 lines
440 B
PHP
23 lines
440 B
PHP
<?php
|
|
|
|
namespace App\Repositories;
|
|
|
|
use Illuminate\Database\Eloquent\Collection;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
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;
|
|
}
|