@@ -56,7 +56,7 @@ |
||
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | /** |
| 59 | - * @return User |
|
| 59 | + * @return \yii\db\ActiveQuery |
|
| 60 | 60 | */ |
| 61 | 61 | public function getUser() |
| 62 | 62 | { |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | - * @return PropertyGroup|null |
|
| 67 | + * @return \yii\db\ActiveQuery |
|
| 68 | 68 | */ |
| 69 | 69 | public function getGroup() |
| 70 | 70 | { |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | /** |
| 214 | 214 | * @param int $object_id |
| 215 | 215 | * @param int $object_model_id |
| 216 | - * @return null|\yii\db\ActiveRecord[] |
|
| 216 | + * @return string |
|
| 217 | 217 | */ |
| 218 | 218 | public static function getForModel($object_id, $object_model_id) |
| 219 | 219 | { |
@@ -269,7 +269,7 @@ discard block |
||
| 269 | 269 | } |
| 270 | 270 | |
| 271 | 271 | /** |
| 272 | - * @param ActiveRecord|HasProperties $model |
|
| 272 | + * @param ActiveRecord $model |
|
| 273 | 273 | * @param string $idAttribute |
| 274 | 274 | * @return bool |
| 275 | 275 | */ |
@@ -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 | { |
@@ -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) |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | /** |
| 89 | - * @return Order[]|null |
|
| 89 | + * @return \yii\db\ActiveQuery |
|
| 90 | 90 | */ |
| 91 | 91 | public function getOrders() |
| 92 | 92 | { |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | /** |
| 97 | - * @return Customer|null |
|
| 97 | + * @return \yii\db\ActiveQuery |
|
| 98 | 98 | */ |
| 99 | 99 | public function getCustomer() |
| 100 | 100 | { |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | /** |
| 105 | - * @return DeliveryInformation|null |
|
| 105 | + * @return \yii\db\ActiveQuery |
|
| 106 | 106 | */ |
| 107 | 107 | public function getDeliveryInformation() |
| 108 | 108 | { |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | /** |
| 121 | - * @return PropertyGroup|null |
|
| 121 | + * @return PropertyGroup |
|
| 122 | 122 | */ |
| 123 | 123 | public function getPropertyGroup() |
| 124 | 124 | { |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | /** |
| 129 | 129 | * @param Customer $customer |
| 130 | 130 | * @param bool $dummyObject |
| 131 | - * @return Contragent|null |
|
| 131 | + * @return Contragent |
|
| 132 | 132 | */ |
| 133 | 133 | public static function createEmptyContragent(Customer $customer, $dummyObject = true) |
| 134 | 134 | { |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | /** |
| 106 | - * @return Order[]|null |
|
| 106 | + * @return \yii\db\ActiveQuery |
|
| 107 | 107 | */ |
| 108 | 108 | public function getOrders() |
| 109 | 109 | { |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | /** |
| 114 | - * @return User|null |
|
| 114 | + * @return \yii\db\ActiveQuery |
|
| 115 | 115 | */ |
| 116 | 116 | public function getUser() |
| 117 | 117 | { |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | /** |
| 122 | - * @return Contragent[]|null |
|
| 122 | + * @return \yii\db\ActiveQuery |
|
| 123 | 123 | */ |
| 124 | 124 | public function getContragents() |
| 125 | 125 | { |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | /** |
| 130 | - * @return Contragent|null |
|
| 130 | + * @return \yii\db\ActiveQuery |
|
| 131 | 131 | */ |
| 132 | 132 | public function getContragent() |
| 133 | 133 | { |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | } |
| 225 | 225 | |
| 226 | 226 | /** |
| 227 | - * @return PropertyGroup|null |
|
| 227 | + * @return PropertyGroup |
|
| 228 | 228 | */ |
| 229 | 229 | public function getPropertyGroup() |
| 230 | 230 | { |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | - * @return Contragent|null |
|
| 62 | + * @return \yii\db\ActiveQuery |
|
| 63 | 63 | */ |
| 64 | 64 | public function getContragent() |
| 65 | 65 | { |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | - * @return Country|null |
|
| 70 | + * @return \yii\db\ActiveQuery |
|
| 71 | 71 | */ |
| 72 | 72 | public function getCountry() |
| 73 | 73 | { |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | /** |
| 78 | - * @return City|null |
|
| 78 | + * @return \yii\db\ActiveQuery |
|
| 79 | 79 | */ |
| 80 | 80 | public function getCity() |
| 81 | 81 | { |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | |
| 85 | 85 | /** |
| 86 | 86 | * @param Contragent $contragent |
| 87 | - * @return DeliveryInformation|null |
|
| 87 | + * @return DeliveryInformation |
|
| 88 | 88 | */ |
| 89 | 89 | public static function createNewDeliveryInformation(Contragent $contragent, $dummyObject = true) |
| 90 | 90 | { |