@@ -76,6 +76,9 @@ discard block |
||
76 | 76 | } |
77 | 77 | } |
78 | 78 | |
79 | + /** |
|
80 | + * @param string $modelName |
|
81 | + */ |
|
79 | 82 | public function get($modelName, $primaryKey, $options) |
80 | 83 | { |
81 | 84 | return $this->db->post($modelName . 'GetInfo', ArrayHelper::merge(['id' => $primaryKey], $options)); |
@@ -106,7 +109,7 @@ discard block |
||
106 | 109 | } |
107 | 110 | |
108 | 111 | /** |
109 | - * @param $action |
|
112 | + * @param string $action |
|
110 | 113 | * @param array $options |
111 | 114 | * |
112 | 115 | * @return mixed |
@@ -27,6 +27,9 @@ discard block |
||
27 | 27 | |
28 | 28 | public $db; |
29 | 29 | |
30 | + /** |
|
31 | + * @param Connection $connection |
|
32 | + */ |
|
30 | 33 | public function __construct($connection, $config = []) |
31 | 34 | { |
32 | 35 | $this->db = $connection; |
@@ -59,6 +62,9 @@ discard block |
||
59 | 62 | ]; |
60 | 63 | } |
61 | 64 | |
65 | + /** |
|
66 | + * @param integer $limit |
|
67 | + */ |
|
62 | 68 | public function buildLimit($limit, &$parts) |
63 | 69 | { |
64 | 70 | if (!empty($limit)) { |
@@ -69,6 +75,10 @@ discard block |
||
69 | 75 | } |
70 | 76 | } |
71 | 77 | |
78 | + /** |
|
79 | + * @param integer $offset |
|
80 | + * @param integer $limit |
|
81 | + */ |
|
72 | 82 | public function buildPage($offset, $limit, &$parts) |
73 | 83 | { |
74 | 84 | if ($offset > 0) { |
@@ -145,7 +145,7 @@ |
||
145 | 145 | * |
146 | 146 | * @throws InvalidConfigException |
147 | 147 | * |
148 | - * @return string|callable|array |
|
148 | + * @return string |
|
149 | 149 | * |
150 | 150 | * @author SilverFire |
151 | 151 | */ |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | * Performs HEAD HTTP request. |
175 | 175 | * @param string $url URL |
176 | 176 | * @param array $query query options |
177 | - * @param bool $raw Do not try to decode data, event when response is decodeable (JSON). Defaults to `false` |
|
177 | + * @param string $body |
|
178 | 178 | * @throws HiArtException |
179 | 179 | * @throws \yii\base\InvalidConfigException |
180 | 180 | * @return mixed response |
@@ -232,7 +232,6 @@ discard block |
||
232 | 232 | /** |
233 | 233 | * XXX DEPRECATED in favour of post(). |
234 | 234 | * @param $url |
235 | - * @param array $query |
|
236 | 235 | * @return mixed |
237 | 236 | */ |
238 | 237 | public function perform($url, $body = []) |
@@ -246,6 +245,7 @@ discard block |
||
246 | 245 | * @param array $query query options, (GET parameters) |
247 | 246 | * @param string $body request body, (POST parameters) |
248 | 247 | * @param bool $raw Do not try to decode data, event when response is decodeable (JSON). Defaults to `false` |
248 | + * @param string $method |
|
249 | 249 | * @throws HiArtException |
250 | 250 | * @throws \yii\base\InvalidConfigException |
251 | 251 | * @return mixed response |
@@ -259,9 +259,9 @@ discard block |
||
259 | 259 | |
260 | 260 | /** |
261 | 261 | * Creates URL. |
262 | - * @param mixed $path path |
|
262 | + * @param string $path path |
|
263 | 263 | * @param array $query query options |
264 | - * @return array |
|
264 | + * @return string |
|
265 | 265 | */ |
266 | 266 | private function prepareUrl($path, array $query = []) |
267 | 267 | { |
@@ -363,7 +363,7 @@ discard block |
||
363 | 363 | |
364 | 364 | /** |
365 | 365 | * Setter for errorChecker. |
366 | - * @param Closure|array $value |
|
366 | + * @param Closure $value |
|
367 | 367 | * @return void |
368 | 368 | */ |
369 | 369 | public function setErrorChecker($value) |