@@ -124,7 +124,7 @@ |
||
| 124 | 124 | |
| 125 | 125 | |
| 126 | 126 | /** |
| 127 | - * @return ContentBlockGroup[] |
|
| 127 | + * @return \yii\db\ActiveQuery |
|
| 128 | 128 | */ |
| 129 | 129 | public function getGroup() |
| 130 | 130 | { |
@@ -22,6 +22,9 @@ discard block |
||
| 22 | 22 | protected $backendLink; |
| 23 | 23 | protected static $classNames; |
| 24 | 24 | |
| 25 | + /** |
|
| 26 | + * @param integer $id |
|
| 27 | + */ |
|
| 25 | 28 | protected function getPageLinks($id) |
| 26 | 29 | { |
| 27 | 30 | /** @var Page $model */ |
@@ -46,6 +49,9 @@ discard block |
||
| 46 | 49 | } |
| 47 | 50 | } |
| 48 | 51 | |
| 52 | + /** |
|
| 53 | + * @param integer $id |
|
| 54 | + */ |
|
| 49 | 55 | protected function getCategoryLinks($id) |
| 50 | 56 | { |
| 51 | 57 | $model = Category::findById($id, null); |
@@ -72,6 +78,9 @@ discard block |
||
| 72 | 78 | } |
| 73 | 79 | } |
| 74 | 80 | |
| 81 | + /** |
|
| 82 | + * @param integer $id |
|
| 83 | + */ |
|
| 75 | 84 | protected function getProductLinks($id) |
| 76 | 85 | { |
| 77 | 86 | $product = Yii::$container->get(Product::class); |
@@ -62,9 +62,9 @@ |
||
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | 64 | * Return thumbnail width watermark or create if not exist |
| 65 | - * @param $thumb Thumbnail |
|
| 66 | - * @param $water Watermark |
|
| 67 | - * @return thumbnail |
|
| 65 | + * @param Thumbnail $thumb Thumbnail |
|
| 66 | + * @param Watermark $water Watermark |
|
| 67 | + * @return ThumbnailWatermark |
|
| 68 | 68 | */ |
| 69 | 69 | public static function getThumbnailWatermark($thumb, $water) |
| 70 | 70 | { |
@@ -316,6 +316,9 @@ |
||
| 316 | 316 | return $result; |
| 317 | 317 | } |
| 318 | 318 | |
| 319 | + /** |
|
| 320 | + * @param string $className |
|
| 321 | + */ |
|
| 319 | 322 | private function invalidateTags($className, $ids) |
| 320 | 323 | { |
| 321 | 324 | $tags = [ |
@@ -79,6 +79,9 @@ discard block |
||
| 79 | 79 | return $this->redirect(Url::previous('__shopCabinetUpdateReturnUrl')); |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | + /** |
|
| 83 | + * @param Customer $customer |
|
| 84 | + */ |
|
| 82 | 85 | private function updateCustomer($customer) |
| 83 | 86 | { |
| 84 | 87 | if ($customer === null) { |
@@ -89,6 +92,9 @@ discard block |
||
| 89 | 92 | } |
| 90 | 93 | } |
| 91 | 94 | |
| 95 | + /** |
|
| 96 | + * @param Contragent $contragent |
|
| 97 | + */ |
|
| 92 | 98 | private function updateContragent($contragent) |
| 93 | 99 | { |
| 94 | 100 | if ($contragent === null) { |
@@ -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 | { |
@@ -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 | { |
@@ -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 | { |
@@ -344,7 +344,7 @@ discard block |
||
| 344 | 344 | } |
| 345 | 345 | |
| 346 | 346 | /** |
| 347 | - * @return Category|null |
|
| 347 | + * @return ActiveQuery |
|
| 348 | 348 | */ |
| 349 | 349 | public function getCategory() |
| 350 | 350 | { |
@@ -1115,7 +1115,7 @@ discard block |
||
| 1115 | 1115 | } |
| 1116 | 1116 | |
| 1117 | 1117 | /** |
| 1118 | - * @param int|Category|null $category |
|
| 1118 | + * @param integer $category |
|
| 1119 | 1119 | * @param bool $asMainCategory |
| 1120 | 1120 | * @return bool |
| 1121 | 1121 | * @throws \yii\db\Exception |