21 lines
501 B
PHP
21 lines
501 B
PHP
<?php
|
|
|
|
namespace App\Repositories\Contracts;
|
|
|
|
use App\Models\Course;
|
|
use Illuminate\Pagination\LengthAwarePaginator;
|
|
|
|
/**
|
|
* @extends BaseRepositoryInterface<Course>
|
|
*/
|
|
interface CourseRepositoryInterface extends BaseRepositoryInterface
|
|
{
|
|
public function findBySlug(string $slug): ?Course;
|
|
|
|
/**
|
|
* @param array<string, mixed> $filters
|
|
* @return LengthAwarePaginator<int, Course>
|
|
*/
|
|
public function paginate(array $filters = [], int $perPage = 15): LengthAwarePaginator;
|
|
}
|