Conditions | 2 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function consumeEvent(TransformEvent $event): void |
||
21 | { |
||
22 | $this->buildProperty($event, ProductInterface::class, |
||
23 | function (ProductInterface $product, Document $document): void { |
||
24 | foreach ($product->getTaxons() as $taxon) { |
||
25 | $document->set( |
||
26 | $this->taxonPositionNameResolver->resolvePropertyName($taxon->getCode()), |
||
27 | $taxon->getPosition() |
||
28 | ); |
||
34 |