@@ -225,7 +225,7 @@ |
||
| 225 | 225 | /** |
| 226 | 226 | * Добавляет теги ддля опций доставки |
| 227 | 227 | * |
| 228 | - * @param $string |
|
| 228 | + * @param string $string |
|
| 229 | 229 | * |
| 230 | 230 | * @throws Exception |
| 231 | 231 | */ |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | |
| 70 | 70 | /** |
| 71 | 71 | * @param $valuesModel |
| 72 | - * @param null $onValidationError |
|
| 72 | + * @param null|callable $onValidationError |
|
| 73 | 73 | * |
| 74 | 74 | * @return bool |
| 75 | 75 | * @throws Exception |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | namespace pastuhov\ymlcatalog\models; |
| 3 | 3 | |
| 4 | 4 | use pastuhov\ymlcatalog\EscapedAttributes; |
| 5 | -use yii\base\Model; |
|
| 6 | 5 | use yii\base\Exception; |
| 6 | +use yii\base\Model; |
|
| 7 | 7 | |
| 8 | 8 | /** |
| 9 | 9 | * Base model. |
@@ -1,15 +1,15 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace pastuhov\ymlcatalog; |
| 3 | 3 | |
| 4 | +use Yii; |
|
| 5 | +use pastuhov\FileStream\BaseFileStream; |
|
| 4 | 6 | use pastuhov\ymlcatalog\models\BaseModel; |
| 5 | 7 | use pastuhov\ymlcatalog\models\Category; |
| 6 | 8 | use pastuhov\ymlcatalog\models\Currency; |
| 9 | +use pastuhov\ymlcatalog\models\DeliveryOption; |
|
| 7 | 10 | use pastuhov\ymlcatalog\models\LocalDeliveryCost; |
| 8 | 11 | use pastuhov\ymlcatalog\models\Shop; |
| 9 | 12 | use pastuhov\ymlcatalog\models\SimpleOffer; |
| 10 | -use pastuhov\ymlcatalog\models\DeliveryOption; |
|
| 11 | -use Yii; |
|
| 12 | -use pastuhov\FileStream\BaseFileStream; |
|
| 13 | 13 | use yii\base\Exception; |
| 14 | 14 | use yii\data\ActiveDataProvider; |
| 15 | 15 | use yii\db\ActiveQuery; |
@@ -76,11 +76,12 @@ discard block |
||
| 76 | 76 | * @param string $currencyClass class name |
| 77 | 77 | * @param string $categoryClass class name |
| 78 | 78 | * @param string $localDeliveryCostClass class name |
| 79 | - * @param array $offerClasses |
|
| 79 | + * @param string[] $offerClasses |
|
| 80 | 80 | * @param null|string $date |
| 81 | 81 | * @param null|callable $onValidationError |
| 82 | 82 | * @param null|string $customOfferClass |
| 83 | 83 | * @param null|string $customCategoryClass |
| 84 | + * @param string $deliveryOptionClass |
|
| 84 | 85 | */ |
| 85 | 86 | public function __construct( |
| 86 | 87 | BaseFileStream $handle, |
@@ -259,7 +260,7 @@ discard block |
||
| 259 | 260 | } |
| 260 | 261 | |
| 261 | 262 | /** |
| 262 | - * @param $modelClass |
|
| 263 | + * @param BaseFindYmlInterface $modelClass |
|
| 263 | 264 | * @return Category|Currency|SimpleOffer |
| 264 | 265 | * @throws Exception |
| 265 | 266 | */ |