| Total Complexity | 2 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | final class ProductTaxonsBuilder extends AbstractBuilder |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var ProductTaxonsMapperInterface |
||
| 24 | */ |
||
| 25 | private $productTaxonsMapper; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | private $taxonsProperty; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param ProductTaxonsMapperInterface $productTaxonsMapper |
||
| 34 | * @param string $taxonsProperty |
||
| 35 | */ |
||
| 36 | public function __construct(ProductTaxonsMapperInterface $productTaxonsMapper, string $taxonsProperty) |
||
| 37 | { |
||
| 38 | $this->productTaxonsMapper = $productTaxonsMapper; |
||
| 39 | $this->taxonsProperty = $taxonsProperty; |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param TransformEvent $event |
||
| 44 | */ |
||
| 45 | public function consumeEvent(TransformEvent $event): void |
||
| 52 | } |
||
| 53 | ); |
||
| 56 |