Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | final class SoldUnitsPropertyBuilder extends AbstractBuilder |
||
19 | { |
||
20 | /** @var OrderItemRepositoryInterface */ |
||
21 | private $orderItemRepository; |
||
22 | |||
23 | /** @var string */ |
||
24 | private $soldUnitsProperty; |
||
25 | |||
26 | public function __construct(OrderItemRepositoryInterface $orderItemRepository, string $soldUnitsProperty) |
||
27 | { |
||
28 | $this->orderItemRepository = $orderItemRepository; |
||
29 | $this->soldUnitsProperty = $soldUnitsProperty; |
||
30 | } |
||
31 | |||
32 | public function consumeEvent(PostTransformEvent $event): void |
||
45 | } |
||
46 | ); |
||
49 |