Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | class ComparerProductFactory implements ComparerProductFactoryInterface |
||
13 | { |
||
14 | /** @var FactoryInterface */ |
||
15 | private $comparerProductFactory; |
||
16 | |||
17 | public function __construct(FactoryInterface $comparerProductFactory) |
||
20 | } |
||
21 | |||
22 | public function createNew(): ComparerProductInterface |
||
23 | { |
||
24 | /** @var ComparerProductInterface $comparerProduct */ |
||
25 | $comparerProduct = $this->comparerProductFactory->createNew(); |
||
26 | |||
27 | return $comparerProduct; |
||
28 | } |
||
29 | |||
30 | public function createForComparerAndProduct(ComparerInterface $comparer, ProductInterface $product): ComparerProductInterface |
||
38 | } |
||
39 | } |
||
40 |