| 1 | <?php  | 
            ||
| 8 | class PaginationFilter implements FilterInterface  | 
            ||
| 9 | { | 
            ||
| 10 | /** @var int $page */  | 
            ||
| 11 | private $page;  | 
            ||
| 12 | |||
| 13 | /** @var int $numPerPage */  | 
            ||
| 14 | private $numPerPage;  | 
            ||
| 15 | |||
| 16 | /**  | 
            ||
| 17 | * @param ArrayIterator $collection  | 
            ||
| 18 | * @return ArrayIterator  | 
            ||
| 19 | */  | 
            ||
| 20 | 2 | public function filter(ArrayIterator $collection): ArrayIterator  | 
            |
| 50 | |||
| 51 | /**  | 
            ||
| 52 | * @return int  | 
            ||
| 53 | */  | 
            ||
| 54 | 1 | public function getPage(): int  | 
            |
| 58 | |||
| 59 | /**  | 
            ||
| 60 | * @param int $page  | 
            ||
| 61 | * @return PaginationFilter  | 
            ||
| 62 | */  | 
            ||
| 63 | 1 | public function setPage(int $page): PaginationFilter  | 
            |
| 68 | |||
| 69 | /**  | 
            ||
| 70 | * @return int  | 
            ||
| 71 | */  | 
            ||
| 72 | 1 | public function getNumPerPage(): int  | 
            |
| 76 | |||
| 77 | /**  | 
            ||
| 78 | * @param int $numPerPage  | 
            ||
| 79 | * @return PaginationFilter  | 
            ||
| 80 | */  | 
            ||
| 81 | 1 | public function setNumPerPage(int $numPerPage): PaginationFilter  | 
            |
| 86 | }  |