@@ -74,7 +74,7 @@ |
||
74 | 74 | * Executes the purchase. |
75 | 75 | * Calls proper API commands to purchase the product. |
76 | 76 | * @throws ErrorPurchaseException in case of failed purchase |
77 | - * @return true if the item was purchased successfully |
|
77 | + * @return boolean if the item was purchased successfully |
|
78 | 78 | */ |
79 | 79 | public function execute() |
80 | 80 | { |
@@ -171,6 +171,9 @@ |
||
171 | 171 | return $this->tariff; |
172 | 172 | } |
173 | 173 | |
174 | + /** |
|
175 | + * @param Tariff $tariff |
|
176 | + */ |
|
174 | 177 | public function setTariff($tariff) |
175 | 178 | { |
176 | 179 | if ($tariff === null) { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use hipanel\modules\finance\models\DomainResource; |
6 | 6 | use hipanel\modules\finance\models\DomainService; |
7 | -use hipanel\modules\finance\models\Tariff; |
|
8 | 7 | use yii\web\UnprocessableEntityHttpException; |
9 | 8 | |
10 | 9 | class DomainTariffForm extends AbstractTariffForm |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use hipanel\modules\finance\models\Tariff; |
7 | 7 | use yii\base\InvalidConfigException; |
8 | 8 | use yii\base\Object; |
9 | -use yii\helpers\ArrayHelper; |
|
10 | 9 | use yii\web\ForbiddenHttpException; |
11 | 10 | |
12 | 11 | abstract class AbstractTariffManager extends Object |