@@ -33,6 +33,9 @@ |
||
| 33 | 33 | ]; |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | + /** |
|
| 37 | + * @param string $key |
|
| 38 | + */ |
|
| 36 | 39 | public function searchByKey($key) |
| 37 | 40 | { |
| 38 | 41 | |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | protected $subject = null; |
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | - * @return null |
|
| 47 | + * @return string |
|
| 48 | 48 | */ |
| 49 | 49 | public function getSubject() |
| 50 | 50 | { |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | * @param Order $order |
| 93 | 93 | * @param SpecialPriceList $specialPrice |
| 94 | 94 | * @param $price |
| 95 | - * @return float |
|
| 95 | + * @return integer |
|
| 96 | 96 | */ |
| 97 | 97 | static public function getDiscountPriceOrder( |
| 98 | 98 | Order $order, |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | * @param Order $order |
| 122 | 122 | * @param SpecialPriceList $specialPrice |
| 123 | 123 | * @param $price |
| 124 | - * @return float |
|
| 124 | + * @return integer |
|
| 125 | 125 | */ |
| 126 | 126 | static public function getDeliveryPriceOrder( |
| 127 | 127 | Order $order, |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | /** |
| 146 | - * @param array $types |
|
| 146 | + * @param string[] $types |
|
| 147 | 147 | * @return array |
| 148 | 148 | */ |
| 149 | 149 | static protected function getDiscountsByAppliance($types = []) |
@@ -1094,7 +1094,7 @@ |
||
| 1094 | 1094 | } |
| 1095 | 1095 | |
| 1096 | 1096 | /** |
| 1097 | - * @param int|Category|null $category |
|
| 1097 | + * @param integer $category |
|
| 1098 | 1098 | * @param bool $asMainCategory |
| 1099 | 1099 | * @return bool |
| 1100 | 1100 | * @throws \yii\db\Exception |
@@ -80,6 +80,9 @@ |
||
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | |
| 83 | + /** |
|
| 84 | + * @param string $relationName |
|
| 85 | + */ |
|
| 83 | 86 | protected static function getRelation($model, $relationName, $default_value = '') |
| 84 | 87 | { |
| 85 | 88 | $result = $default_value; |
@@ -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 | { |