| Total Complexity | 5 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class ComparerProduct implements ComparerProductInterface |
||
| 10 | { |
||
| 11 | /** @var int */ |
||
| 12 | private $id; |
||
| 13 | |||
| 14 | /** @var ComparerInterface */ |
||
| 15 | private $comparer; |
||
| 16 | |||
| 17 | /** @var ProductInterface */ |
||
| 18 | private $product; |
||
| 19 | |||
| 20 | public function getId(): ?int |
||
| 21 | { |
||
| 22 | return $this->id; |
||
| 23 | } |
||
| 24 | |||
| 25 | public function setComparer(ComparerInterface $comparer): void |
||
| 28 | } |
||
| 29 | |||
| 30 | public function getComparer(): ComparerInterface |
||
| 33 | } |
||
| 34 | |||
| 35 | public function setProduct(ProductInterface $product): void |
||
| 36 | { |
||
| 37 | $this->product = $product; |
||
| 38 | } |
||
| 39 | |||
| 40 | public function getProduct(): ?ProductInterface |
||
| 43 | } |
||
| 44 | } |
||
| 45 |