@@ -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 | { |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | - * @param $type |
|
| 60 | + * @param string $type |
|
| 61 | 61 | * @param bool $stubWhenNotFound whether to return [[ServerResourceStub]] when |
| 62 | 62 | * the tariff does not have a relevant resource |
| 63 | 63 | * @return DomainResource|ServerResource|ServerResourceStub|resource |
@@ -68,6 +68,9 @@ |
||
| 68 | 68 | return $this->generateDocument('generate-document', compact('id', 'type')); |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | + /** |
|
| 72 | + * @param string $action |
|
| 73 | + */ |
|
| 71 | 74 | public function generateDocument($action, $params) |
| 72 | 75 | { |
| 73 | 76 | try { |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | - * @return array |
|
| 43 | + * @return string[] |
|
| 44 | 44 | */ |
| 45 | 45 | public static function getPeriods() |
| 46 | 46 | { |
@@ -30,6 +30,9 @@ |
||
| 30 | 30 | $this->loadMerchants($this->depositRequest); |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | + /** |
|
| 34 | + * @param DepositRequest $depositRequest |
|
| 35 | + */ |
|
| 33 | 36 | public function loadMerchants($depositRequest) |
| 34 | 37 | { |
| 35 | 38 | $this->addItems($this->fetchMerchants($depositRequest)); |
@@ -89,6 +89,9 @@ |
||
| 89 | 89 | return $this->getDocumentsOfType('acceptance'); |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | + /** |
|
| 93 | + * @param string $type |
|
| 94 | + */ |
|
| 92 | 95 | public function getDocumentsOfType($type) |
| 93 | 96 | { |
| 94 | 97 | if (Yii::$app->user->can('document.read') === false) { |
@@ -15,6 +15,9 @@ |
||
| 15 | 15 | |
| 16 | 16 | class PlanQuery extends \hiqdev\hiart\ActiveQuery |
| 17 | 17 | { |
| 18 | + /** |
|
| 19 | + * @param integer $id |
|
| 20 | + */ |
|
| 18 | 21 | public function byId($id) |
| 19 | 22 | { |
| 20 | 23 | return $this->andWhere(['id' => $id]); |
@@ -47,6 +47,9 @@ |
||
| 47 | 47 | ]; |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | + /** |
|
| 51 | + * @param string $name |
|
| 52 | + */ |
|
| 50 | 53 | private function groupOf($name, $formulas) |
| 51 | 54 | { |
| 52 | 55 | return ['name' => $name, 'formulas' => $formulas]; |
@@ -45,6 +45,9 @@ |
||
| 45 | 45 | } |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | + /** |
|
| 49 | + * @param \hipanel\inputs\TextInput $type |
|
| 50 | + */ |
|
| 48 | 51 | private function renderTextInput($type) |
| 49 | 52 | { |
| 50 | 53 | $this->activeField->template = "{label}\n<div class=\"input-group\">{input}</div>\n{hint}\n{error}"; |