1 | <?php |
||
10 | trait GetRequestTrait |
||
11 | { |
||
12 | /** |
||
13 | * The limit on the number of elements in the query of a list. |
||
14 | * |
||
15 | * @var integer |
||
16 | * |
||
17 | * @JMS\Type("integer") |
||
18 | * @JMS\SerializedName("LIMIT") |
||
19 | */ |
||
20 | protected $limit = 100; |
||
21 | |||
22 | /** |
||
23 | * The offset for the request. |
||
24 | * |
||
25 | * @var integer |
||
26 | * |
||
27 | * @JMS\Type("integer") |
||
28 | * @JMS\SerializedName("OFFSET") |
||
29 | */ |
||
30 | protected $offset; |
||
31 | |||
32 | /** |
||
33 | * Get the limit on the number of elements in the query of a list. |
||
34 | * |
||
35 | * @return integer |
||
36 | */ |
||
37 | public function getLimit() |
||
41 | |||
42 | /** |
||
43 | * Set the limit for the request. |
||
44 | * |
||
45 | * @param integer $limit The limit. |
||
46 | * @return $this |
||
47 | */ |
||
48 | public function setLimit($limit) |
||
54 | |||
55 | /** |
||
56 | * Get the offset. |
||
57 | * |
||
58 | * @return integer |
||
59 | */ |
||
60 | public function getOffset() |
||
64 | |||
65 | /** |
||
66 | * Set the offset of the request. |
||
67 | * |
||
68 | * @param integer $offset The offset. |
||
69 | * @return $this |
||
70 | */ |
||
71 | public function setOffset($offset) |
||
77 | } |
||
78 |