@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | } |
56 | 56 | |
57 | 57 | /** |
58 | - * @return Property|null |
|
58 | + * @return \yii\db\ActiveQuery |
|
59 | 59 | */ |
60 | 60 | public function getProperty() |
61 | 61 | { |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |
66 | - * @return Product|null |
|
66 | + * @return \yii\db\ActiveQuery |
|
67 | 67 | */ |
68 | 68 | public function getProduct() |
69 | 69 | { |
@@ -185,7 +185,7 @@ |
||
185 | 185 | /** |
186 | 186 | * @param int $id |
187 | 187 | * @param int $is_published |
188 | - * @return mixed |
|
188 | + * @return ActiveRecord |
|
189 | 189 | */ |
190 | 190 | public static function findById($id, $is_published = 1) |
191 | 191 | { |
@@ -11,6 +11,9 @@ discard block |
||
11 | 11 | protected $fileHandler; |
12 | 12 | protected $urlsCount = 0; |
13 | 13 | |
14 | + /** |
|
15 | + * @return resource |
|
16 | + */ |
|
14 | 17 | protected function getFileHandler() |
15 | 18 | { |
16 | 19 | if ($this->fileHandler === null) { |
@@ -38,12 +41,19 @@ discard block |
||
38 | 41 | return rename($this->directory . $oldName, $this->directory . $newName); |
39 | 42 | } |
40 | 43 | |
44 | + /** |
|
45 | + * @param string|boolean $directory |
|
46 | + * @param string $domain |
|
47 | + */ |
|
41 | 48 | public function __construct($directory, $domain) |
42 | 49 | { |
43 | 50 | $this->directory = $directory; |
44 | 51 | $this->domain = $domain; |
45 | 52 | } |
46 | 53 | |
54 | + /** |
|
55 | + * @param string $url |
|
56 | + */ |
|
47 | 57 | public function addUrl($url) |
48 | 58 | { |
49 | 59 | // @todo convert "wrong" symbols |
@@ -94,7 +94,7 @@ |
||
94 | 94 | } |
95 | 95 | |
96 | 96 | /** |
97 | - * @return array prepared to dropdown list in configurable |
|
97 | + * @return string[] prepared to dropdown list in configurable |
|
98 | 98 | */ |
99 | 99 | public static function getRedirectTypes() |
100 | 100 | { |
@@ -107,7 +107,7 @@ |
||
107 | 107 | * Deletes an existing CategoryGroup model. |
108 | 108 | * If deletion is successful, the browser will be redirected to the 'index' page. |
109 | 109 | * @param string $id |
110 | - * @return mixed |
|
110 | + * @return \yii\web\Response |
|
111 | 111 | */ |
112 | 112 | public function actionDelete($id) |
113 | 113 | { |
@@ -111,7 +111,7 @@ |
||
111 | 111 | * Deletes an existing PaymentType model. |
112 | 112 | * If deletion is successful, the browser will be redirected to the 'index' page. |
113 | 113 | * @param string $id |
114 | - * @return mixed |
|
114 | + * @return \yii\web\Response |
|
115 | 115 | */ |
116 | 116 | public function actionDelete($id) |
117 | 117 | { |
@@ -113,7 +113,7 @@ |
||
113 | 113 | * Deletes an existing ShippingOption model. |
114 | 114 | * If deletion is successful, the browser will be redirected to the 'index' page. |
115 | 115 | * @param string $id |
116 | - * @return mixed |
|
116 | + * @return \yii\web\Response |
|
117 | 117 | */ |
118 | 118 | public function actionDelete($id) |
119 | 119 | { |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | |
120 | 120 | /** |
121 | 121 | * Return delete modes list |
122 | - * @return array |
|
122 | + * @return string[] |
|
123 | 123 | */ |
124 | 124 | public static function deleteModesList() |
125 | 125 | { |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | /** |
240 | 240 | * Returns model using indentity map and cache |
241 | 241 | * @param int $id |
242 | - * @param int|null $isActive |
|
242 | + * @param integer $isActive |
|
243 | 243 | * @return Category|null |
244 | 244 | */ |
245 | 245 | public static function findById($id, $isActive = 1) |
@@ -275,6 +275,7 @@ discard block |
||
275 | 275 | /** |
276 | 276 | * Finds category by slug inside category_group_id |
277 | 277 | * Uses cache and identity_map |
278 | + * @param integer $category_group_id |
|
278 | 279 | */ |
279 | 280 | public static function findBySlug($slug, $category_group_id, $parent_id = 0) |
280 | 281 | { |
@@ -328,6 +329,7 @@ discard block |
||
328 | 329 | /** |
329 | 330 | * Ищет по name в рамках category_group_id |
330 | 331 | * Заносит в identity_map |
332 | + * @param integer $category_group_id |
|
331 | 333 | */ |
332 | 334 | public static function findByName($name, $category_group_id, $parent_id = 0) |
333 | 335 | { |
@@ -415,6 +417,7 @@ discard block |
||
415 | 417 | /** |
416 | 418 | * Ищет root для группы категорий |
417 | 419 | * Использует identity_map |
420 | + * @param integer $id |
|
418 | 421 | * @return Category|null |
419 | 422 | */ |
420 | 423 | public static function findRootForCategoryGroup($id = null) |
@@ -477,7 +480,7 @@ discard block |
||
477 | 480 | |
478 | 481 | /** |
479 | 482 | * @param int $parentId |
480 | - * @param int|null $isActive |
|
483 | + * @param integer $isActive |
|
481 | 484 | * @return Category[]|array |
482 | 485 | */ |
483 | 486 | public static function getByParentId($parentId = null, $isActive = 1) |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | } |
253 | 253 | |
254 | 254 | /** |
255 | - * @return Customer|null |
|
255 | + * @return \yii\db\ActiveQuery |
|
256 | 256 | */ |
257 | 257 | public function getCustomer() |
258 | 258 | { |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | } |
296 | 296 | |
297 | 297 | /** |
298 | - * @return OrderDeliveryInformation|null |
|
298 | + * @return \yii\db\ActiveQuery |
|
299 | 299 | */ |
300 | 300 | public function getOrderDeliveryInformation() |
301 | 301 | { |