26 lines
628 B
PHP
26 lines
628 B
PHP
<?php
|
|
|
|
namespace App\Repositories\Contracts;
|
|
|
|
use App\Enums\FaqCategory;
|
|
use App\Models\Faq;
|
|
use Illuminate\Database\Eloquent\Collection;
|
|
use Illuminate\Pagination\LengthAwarePaginator;
|
|
|
|
/**
|
|
* @extends BaseRepositoryInterface<Faq>
|
|
*/
|
|
interface FaqRepositoryInterface extends BaseRepositoryInterface
|
|
{
|
|
/**
|
|
* @param array<string, mixed> $filters
|
|
* @return LengthAwarePaginator<int, Faq>
|
|
*/
|
|
public function paginate(array $filters = [], int $perPage = 15): LengthAwarePaginator;
|
|
|
|
/**
|
|
* @return Collection<int, Faq>
|
|
*/
|
|
public function getByCategory(FaqCategory $category): Collection;
|
|
}
|