1 | <?php namespace Limoncello\Models; |
||
24 | class PaginatedData implements PaginatedDataInterface |
||
25 | { |
||
26 | /** @var mixed */ |
||
27 | private $data; |
||
28 | |||
29 | /** @var bool */ |
||
30 | private $isCollection; |
||
31 | |||
32 | /** @var bool */ |
||
33 | private $hasMoreItems; |
||
34 | |||
35 | /** @var int|null */ |
||
36 | private $offset; |
||
37 | |||
38 | /** @var int|null */ |
||
39 | private $size; |
||
40 | |||
41 | /** |
||
42 | * @param mixed $data |
||
43 | * @param bool $isCollection |
||
44 | * @param bool $hasMoreItems |
||
45 | * @param int|null $offset |
||
46 | * @param int|null $size |
||
47 | */ |
||
48 | 2 | public function __construct($data, $isCollection = false, $hasMoreItems = false, $offset = null, $size = null) |
|
56 | |||
57 | /** |
||
58 | * @inheritdoc |
||
59 | */ |
||
60 | 2 | public function getData() |
|
64 | |||
65 | /** |
||
66 | * @inheritdoc |
||
67 | */ |
||
68 | 1 | public function isCollection() |
|
72 | |||
73 | /** |
||
74 | * @inheritdoc |
||
75 | */ |
||
76 | 1 | public function hasMoreItems() |
|
80 | |||
81 | /** |
||
82 | * @inheritdoc |
||
83 | */ |
||
84 | 1 | public function getOffset() |
|
88 | |||
89 | /** |
||
90 | * @inheritdoc |
||
91 | */ |
||
92 | 1 | public function getSize() |
|
96 | } |
||
97 |