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