1 | <?php |
||
2 | |||
3 | namespace carono\exchange1c\interfaces; |
||
4 | |||
5 | use yii\db\ActiveRecordInterface; |
||
6 | use Zenwalker\CommerceML\Model\PropertyCollection; |
||
0 ignored issues
–
show
|
|||
7 | |||
8 | /** |
||
9 | * Interface ProductInterface |
||
10 | * |
||
11 | * @package carono\exchange1c\interfaces |
||
12 | */ |
||
13 | interface ProductInterface extends ActiveRecordInterface, IdentifierInterface |
||
14 | { |
||
15 | /** |
||
16 | * Если по каким то причинам файлы import.xml или offers.xml были модифицированы и какие то данные |
||
17 | * не попадают в парсер, в самом конце вызывается данный метод, в $product и $cml можно получить все |
||
18 | * возможные данные для ручного парсинга |
||
19 | * |
||
20 | * @param \Zenwalker\CommerceML\CommerceML $cml |
||
21 | * @param \Zenwalker\CommerceML\Model\Product $product |
||
22 | * @return void |
||
23 | */ |
||
24 | public function setRaw1cData($cml, $product); |
||
25 | |||
26 | /** |
||
27 | * Установка реквизитов, (import.xml > Каталог > Товары > Товар > ЗначенияРеквизитов > ЗначениеРеквизита) |
||
28 | * $name - Наименование |
||
29 | * $value - Значение |
||
30 | * |
||
31 | * @param string $name |
||
32 | * @param string $value |
||
33 | * @return void |
||
34 | */ |
||
35 | public function setRequisite1c($name, $value); |
||
36 | |||
37 | /** |
||
38 | * Предпологается, что дерево групп у Вас уже создано (\carono\exchange1c\interfaces\GroupInterface::createTree1c) |
||
39 | * |
||
40 | * @param \Zenwalker\CommerceML\Model\Group $group |
||
41 | * @return mixed |
||
42 | */ |
||
43 | public function setGroup1c($group); |
||
44 | |||
45 | /** |
||
46 | * import.xml > Классификатор > Свойства > Свойство |
||
47 | * $property - Свойство товара |
||
48 | * |
||
49 | * import.xml > Классификатор > Свойства > Свойство > Значение |
||
50 | * $property->value - Разыменованное значение (string) |
||
51 | * |
||
52 | * import.xml > Классификатор > Свойства > Свойство > ВариантыЗначений > Справочник |
||
53 | * $property->getValueModel() - Данные по значению, Ид значения, и т.д |
||
54 | * |
||
55 | * @param \Zenwalker\CommerceML\Model\Property $property |
||
56 | * @return void |
||
57 | */ |
||
58 | public function setProperty1c($property); |
||
59 | |||
60 | /** |
||
61 | * @param string $path |
||
62 | * @param string $caption |
||
63 | * @return void |
||
64 | */ |
||
65 | public function addImage1c($path, $caption); |
||
66 | |||
67 | /** |
||
68 | * @return GroupInterface |
||
69 | */ |
||
70 | public function getGroup1c(); |
||
71 | |||
72 | /** |
||
73 | * Создание всех свойств продутка |
||
74 | * import.xml > Классификатор > Свойства |
||
75 | * |
||
76 | * $properties[]->availableValues - список доступных значений, для этого свойства |
||
77 | * import.xml > Классификатор > Свойства > Свойство > ВариантыЗначений > Справочник |
||
78 | * |
||
79 | * @param PropertyCollection $properties |
||
80 | * @return mixed |
||
81 | */ |
||
82 | public static function createProperties1c($properties); |
||
83 | |||
84 | /** |
||
85 | * @param \Zenwalker\CommerceML\Model\Offer $offer |
||
86 | * @return OfferInterface |
||
87 | */ |
||
88 | public function getOffer1c($offer); |
||
89 | |||
90 | /** |
||
91 | * @param \Zenwalker\CommerceML\Model\Product $product |
||
92 | * @return self |
||
93 | */ |
||
94 | public static function createModel1c($product); |
||
95 | } |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths