| Conditions | 2 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 28 | public function consumeEvent(PostTransformEvent $event): void |
||
| 29 | { |
||
| 30 | $this->buildProperty( |
||
| 31 | $event, |
||
| 32 | ProductInterface::class, |
||
| 33 | function (ProductInterface $product, Document $document): void { |
||
| 34 | foreach ($product->getProductTaxons() as $taxon) { |
||
| 35 | $document->set( |
||
| 36 | $this->taxonPositionNameResolver->resolvePropertyName($taxon->getTaxon()->getCode()), |
||
| 37 | $taxon->getPosition() |
||
| 38 | ); |
||
| 44 |