@@ -99,10 +99,11 @@ discard block |
||
99 | 99 | * @param string $currencyClass class name |
100 | 100 | * @param string $categoryClass class name |
101 | 101 | * @param string $localDeliveryCostClass class name |
102 | - * @param array $offerClasses |
|
102 | + * @param string[] $offerClasses |
|
103 | 103 | * @param null|string $date |
104 | 104 | * @param null|callable $onValidationError |
105 | 105 | * @param null|string $customOfferClass |
106 | + * @param string $deliveryOptionClass |
|
106 | 107 | */ |
107 | 108 | public function __construct( |
108 | 109 | BaseFileStream $handle, |
@@ -328,7 +329,7 @@ discard block |
||
328 | 329 | } |
329 | 330 | |
330 | 331 | /** |
331 | - * @param $modelClass |
|
332 | + * @param BaseFindYmlInterface $modelClass |
|
332 | 333 | * @return Category|Currency|SimpleOffer |
333 | 334 | * @throws Exception |
334 | 335 | */ |
@@ -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; |