@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | - * @return array |
|
| 60 | + * @return string[] |
|
| 61 | 61 | */ |
| 62 | 62 | public static function getPeriods() |
| 63 | 63 | { |
@@ -82,6 +82,9 @@ discard block |
||
| 82 | 82 | return $periods; |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | + /** |
|
| 86 | + * @param integer $period |
|
| 87 | + */ |
|
| 85 | 88 | public function getPriceForPeriod($period) |
| 86 | 89 | { |
| 87 | 90 | $sums = $this->data['sums'][$period]; |
@@ -95,7 +98,7 @@ discard block |
||
| 95 | 98 | |
| 96 | 99 | /** |
| 97 | 100 | * @param int $period |
| 98 | - * @return string|null |
|
| 101 | + * @return null|Money |
|
| 99 | 102 | */ |
| 100 | 103 | public function getMoneyForPeriod(int $period) |
| 101 | 104 | { |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | * |
| 87 | 87 | * The $price will be casted to double |
| 88 | 88 | * |
| 89 | - * @param mixed $price |
|
| 89 | + * @param string $price |
|
| 90 | 90 | */ |
| 91 | 91 | public function setPrice($price) |
| 92 | 92 | { |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | * |
| 170 | 170 | * The $value will be casted to double |
| 171 | 171 | * |
| 172 | - * @param mixed $value |
|
| 172 | + * @param string $value |
|
| 173 | 173 | */ |
| 174 | 174 | public function setValue($value) |
| 175 | 175 | { |
@@ -220,6 +220,9 @@ |
||
| 220 | 220 | return $canSeeLink ? Html::a($model->tariff, ['@plan/view', 'id' => $model->tariff_id]) : $model->tariff; |
| 221 | 221 | } |
| 222 | 222 | |
| 223 | + /** |
|
| 224 | + * @param Bill $model |
|
| 225 | + */ |
|
| 223 | 226 | public function objectTag($model): string |
| 224 | 227 | { |
| 225 | 228 | return $model->object ? implode(': ', [Yii::t('hipanel', $model->class_label), $this->objectLink($model)]) : ''; |
@@ -154,6 +154,9 @@ |
||
| 154 | 154 | return parent::getViewPath() . DIRECTORY_SEPARATOR . 'cartPaymentOptions'; |
| 155 | 155 | } |
| 156 | 156 | |
| 157 | + /** |
|
| 158 | + * @param string $view |
|
| 159 | + */ |
|
| 157 | 160 | public function render($view, $params = []) |
| 158 | 161 | { |
| 159 | 162 | return parent::render($view, array_merge($params, [ |