@@ -76,6 +76,9 @@ discard block |
||
| 76 | 76 | return $query; |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | + /** |
|
| 80 | + * @param string $count |
|
| 81 | + */ |
|
| 79 | 82 | public function buildCount($count, &$parts) |
| 80 | 83 | { |
| 81 | 84 | if (!empty($count)) { |
@@ -83,6 +86,9 @@ discard block |
||
| 83 | 86 | } |
| 84 | 87 | } |
| 85 | 88 | |
| 89 | + /** |
|
| 90 | + * @param integer $limit |
|
| 91 | + */ |
|
| 86 | 92 | public function buildLimit($limit, &$parts) |
| 87 | 93 | { |
| 88 | 94 | if (!empty($limit)) { |
@@ -93,6 +99,10 @@ discard block |
||
| 93 | 99 | } |
| 94 | 100 | } |
| 95 | 101 | |
| 102 | + /** |
|
| 103 | + * @param integer $offset |
|
| 104 | + * @param integer $limit |
|
| 105 | + */ |
|
| 96 | 106 | public function buildPage($offset, $limit, &$parts) |
| 97 | 107 | { |
| 98 | 108 | if ($offset > 0) { |
@@ -34,6 +34,9 @@ |
||
| 34 | 34 | return $this->fakeResponseWithData($response, Json::encode(reset($response->getData()))); |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | + /** |
|
| 38 | + * @param string $data |
|
| 39 | + */ |
|
| 37 | 40 | private function fakeResponseWithData(AbstractResponse $response, $data) |
| 38 | 41 | { |
| 39 | 42 | $newResponse = clone $response; |