1 | <?php |
||
13 | abstract class AbstractSegmentedRepresentation extends RouteAwareRepresentation |
||
14 | { |
||
15 | /** |
||
16 | * @var int |
||
17 | * |
||
18 | * @Serializer\Expose |
||
19 | * @Serializer\Type("integer") |
||
20 | * @Serializer\XmlAttribute |
||
21 | */ |
||
22 | private $limit; |
||
23 | |||
24 | /** |
||
25 | * @var int |
||
26 | * |
||
27 | * @Serializer\Expose |
||
28 | * @Serializer\Type("integer") |
||
29 | * @Serializer\XmlAttribute |
||
30 | */ |
||
31 | private $total; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | private $limitParameterName; |
||
37 | |||
38 | public function __construct( |
||
53 | |||
54 | /** |
||
55 | * @return int |
||
56 | */ |
||
57 | public function getLimit() |
||
61 | |||
62 | /** |
||
63 | * @param null $limit |
||
64 | * @return array |
||
65 | */ |
||
66 | public function getParameters($limit = null) |
||
74 | |||
75 | /** |
||
76 | * @return int |
||
77 | */ |
||
78 | public function getTotal() |
||
82 | |||
83 | /** |
||
84 | * @return string |
||
85 | */ |
||
86 | public function getLimitParameterName() |
||
90 | |||
91 | /** |
||
92 | * @param string $key |
||
93 | */ |
||
94 | protected function moveParameterToEnd(array &$parameters, $key) |
||
104 | } |
||
105 |