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