Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
45 | public function consumeEvent(TransformEvent $event): void |
||
46 | { |
||
47 | $this->buildProperty($event, ProductInterface::class, |
||
48 | function (ProductInterface $product, Document $document): void { |
||
49 | $taxons = $this->productTaxonsMapper->mapToUniqueCodes($product); |
||
50 | |||
51 | $document->set($this->taxonsProperty, $taxons); |
||
52 | } |
||
56 |