Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | final class StockMovementFactory implements StockMovementFactoryInterface |
||
12 | { |
||
13 | /** @var FactoryInterface */ |
||
14 | private $decoratedFactory; |
||
15 | |||
16 | public function __construct(FactoryInterface $decoratedFactory) |
||
19 | } |
||
20 | |||
21 | public function createNew(): StockMovementInterface |
||
22 | { |
||
23 | /** @var StockMovementInterface $obj */ |
||
24 | $obj = $this->decoratedFactory->createNew(); |
||
25 | |||
26 | return $obj; |
||
27 | } |
||
28 | |||
29 | public function createValid(int $quantity, ProductVariantInterface $variant, string $reference = null): StockMovementInterface |
||
38 | } |
||
39 | } |
||
40 |