1 | <?php declare(strict_types = 1); |
||
9 | abstract class AbstractDataContainer |
||
10 | { |
||
11 | /** |
||
12 | * The requested offset (number of skipped results) of the call. |
||
13 | * |
||
14 | * @var int |
||
15 | */ |
||
16 | private $offset; |
||
17 | |||
18 | /** |
||
19 | * The requested result limit. |
||
20 | * |
||
21 | * @var int |
||
22 | */ |
||
23 | private $limit; |
||
24 | |||
25 | /** |
||
26 | * The total number of resources available given the current filter set. |
||
27 | * |
||
28 | * @var int |
||
29 | */ |
||
30 | private $total; |
||
31 | |||
32 | /** |
||
33 | * The total number of results returned by this call. |
||
34 | * |
||
35 | * @var int |
||
36 | */ |
||
37 | private $count; |
||
38 | |||
39 | /** |
||
40 | * @return int |
||
41 | */ |
||
42 | public function getOffset() |
||
46 | |||
47 | /** |
||
48 | * @param int $offset |
||
49 | */ |
||
50 | public function setOffset(int $offset) |
||
54 | |||
55 | /** |
||
56 | * @return int |
||
57 | */ |
||
58 | public function getLimit() |
||
62 | |||
63 | /** |
||
64 | * @param int $limit |
||
65 | */ |
||
66 | public function setLimit(int $limit) |
||
70 | |||
71 | /** |
||
72 | * @return int |
||
73 | */ |
||
74 | public function getTotal() |
||
78 | |||
79 | /** |
||
80 | * @param int $total |
||
81 | */ |
||
82 | public function setTotal(int $total) |
||
86 | |||
87 | /** |
||
88 | * @return int |
||
89 | */ |
||
90 | public function getCount() |
||
94 | |||
95 | /** |
||
96 | * @param int $count |
||
97 | */ |
||
98 | public function setCount(int $count) |
||
102 | } |
||
103 |