25 lines
639 B
PHP
25 lines
639 B
PHP
<?php
|
|
|
|
namespace App\Repositories\Contracts;
|
|
|
|
use App\Models\CourseSchedule;
|
|
use Illuminate\Database\Eloquent\Collection;
|
|
use Illuminate\Pagination\LengthAwarePaginator;
|
|
|
|
/**
|
|
* @extends BaseRepositoryInterface<CourseSchedule>
|
|
*/
|
|
interface ScheduleRepositoryInterface extends BaseRepositoryInterface
|
|
{
|
|
/**
|
|
* @param array<string, mixed> $filters
|
|
* @return LengthAwarePaginator<int, CourseSchedule>
|
|
*/
|
|
public function paginate(array $filters = [], int $perPage = 15): LengthAwarePaginator;
|
|
|
|
/**
|
|
* @return Collection<int, CourseSchedule>
|
|
*/
|
|
public function upcoming(int $limit = 20): Collection;
|
|
}
|