Total Complexity | 7 |
Total Lines | 57 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class Review |
||
12 | { |
||
13 | /** |
||
14 | * @ORM\Id |
||
15 | * @ORM\GeneratedValue |
||
16 | * @ORM\Column(type="integer") |
||
17 | */ |
||
18 | private $id; |
||
19 | |||
20 | /** |
||
21 | * @ORM\Column(type="integer", nullable=true) |
||
22 | */ |
||
23 | private $prePersistedId; |
||
24 | |||
25 | /** |
||
26 | * @ORM\OneToOne(targetEntity=Product::class, inversedBy="review") |
||
27 | */ |
||
28 | private $product; |
||
29 | |||
30 | /** |
||
31 | * @ORM\Column(type="integer") |
||
32 | */ |
||
33 | private $rank; |
||
34 | |||
35 | public function getId(): ?int |
||
36 | { |
||
37 | return $this->id; |
||
38 | } |
||
39 | |||
40 | public function getPrePersistedId(): ?int |
||
41 | { |
||
42 | return $this->prePersistedId; |
||
43 | } |
||
44 | |||
45 | public function setPrePersistedId(?int $prePersistedId): void |
||
46 | { |
||
47 | $this->prePersistedId = $prePersistedId; |
||
48 | } |
||
49 | |||
50 | public function getProduct(): ?Product |
||
51 | { |
||
52 | return $this->product; |
||
53 | } |
||
54 | |||
55 | public function setProduct(Product $product): void |
||
56 | { |
||
57 | $this->product = $product; |
||
58 | } |
||
59 | |||
60 | public function getRank(): ?int |
||
61 | { |
||
62 | return $this->rank; |
||
63 | } |
||
64 | |||
65 | public function setRank(?int $rank): void |
||
68 | } |
||
69 | } |
||
70 |