@@ -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 |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace hipanel\modules\finance\logic; |
| 4 | 4 | |
| 5 | -use hipanel\modules\finance\forms\DomainTariffForm; |
|
| 6 | 5 | use hipanel\modules\finance\forms\VdsTariffForm; |
| 7 | 6 | use hipanel\modules\finance\models\Tariff; |
| 8 | 7 | use hiqdev\hiart\ErrorResponseException; |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | use hipanel\modules\finance\models\decorators\ResourceDecoratorInterface; |
| 8 | 8 | use hipanel\modules\finance\models\ServerResource; |
| 9 | 9 | use Yii; |
| 10 | -use yii\helpers\Inflector; |
|
| 11 | 10 | |
| 12 | 11 | abstract class AbstractServerResourceDecorator extends AbstractResourceDecorator implements ResourceDecoratorInterface |
| 13 | 12 | { |
@@ -13,8 +13,6 @@ |
||
| 13 | 13 | |
| 14 | 14 | use hipanel\base\ModelTrait; |
| 15 | 15 | use hipanel\modules\finance\models\decorators\AbstractResourceDecorator; |
| 16 | -use hipanel\modules\finance\models\decorators\server\AbstractServerResourceDecorator; |
|
| 17 | -use hipanel\modules\finance\models\decorators\server\BackupResourceDecorator; |
|
| 18 | 16 | use hipanel\modules\finance\models\decorators\server\ServerResourceDecoratorFactory; |
| 19 | 17 | use Yii; |
| 20 | 18 | |