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