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