Total Complexity | 3 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | final class AddProductToComparerRequest implements ComparerRequestInterface |
||
10 | { |
||
11 | /** @var string */ |
||
12 | private $productId; |
||
13 | |||
14 | /** @var ComparerInterface */ |
||
15 | private $comparer; |
||
16 | |||
17 | public function __construct(string $productId, ComparerInterface $comparer) |
||
18 | { |
||
19 | $this->productId = $productId; |
||
20 | $this->comparer = $comparer; |
||
21 | } |
||
22 | |||
23 | public function getComparer(): ComparerInterface |
||
24 | { |
||
25 | return $this->comparer; |
||
26 | } |
||
27 | |||
28 | public function getProductId(): string |
||
31 | } |
||
32 | } |
||
33 |