ComparerProduct::setProduct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Locastic\SyliusComparerPlugin\Entity;
6
7
use Sylius\Component\Core\Model\ProductInterface;
8
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
26
    {
27
        $this->comparer = $comparer;
28
    }
29
30
    public function getComparer(): ComparerInterface
31
    {
32
        return $this->comparer;
33
    }
34
35
    public function setProduct(ProductInterface $product): void
36
    {
37
        $this->product = $product;
38
    }
39
40
    public function getProduct(): ?ProductInterface
41
    {
42
        return $this->product;
43
    }
44
}
45