17 lines
487 B
PHP
17 lines
487 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Repositories;
|
|
|
|
interface LeaveRepositoryInterface extends BaseRepositoryInterface
|
|
{
|
|
/**
|
|
* Get leaves with pagination and optional filtering.
|
|
*
|
|
* @param int $perPage
|
|
* @param array<string, mixed> $filters
|
|
* @return array{leaves: \Illuminate\Support\Collection<int, \App\Models\Leave>, pagination: array<string, int|null>}
|
|
*/
|
|
public function getPaginated(int $perPage = 10, array $filters = []): array;
|
|
} |