1 | <?php |
||
5 | class PaginatedResults |
||
6 | { |
||
7 | /** @var array $results */ |
||
8 | private $results = []; |
||
9 | |||
10 | /** @var int $currentPage */ |
||
11 | private $currentPage; |
||
12 | |||
13 | /** @var int $maxPages */ |
||
14 | private $maxPages; |
||
15 | |||
16 | /** |
||
17 | * PaginatedResults constructor. |
||
18 | * |
||
19 | * @param array $results |
||
20 | * @param int $currentPage |
||
21 | * @param int $maxPages |
||
22 | */ |
||
23 | public function __construct(array $results, $currentPage, $maxPages) |
||
29 | |||
30 | /** |
||
31 | * @return array |
||
32 | */ |
||
33 | public function getResults() |
||
37 | |||
38 | /** |
||
39 | * @codeCoverageIgnore |
||
40 | * @return int |
||
41 | */ |
||
42 | public function getCurrentPage() |
||
46 | |||
47 | /** |
||
48 | * @codeCoverageIgnore |
||
49 | * @return int |
||
50 | */ |
||
51 | public function getMaxPages() |
||
55 | } |