Total Complexity | 5 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | #[ORM\Entity(repositoryClass: ProductRepository::class)] |
||
9 | class Product |
||
10 | { |
||
11 | #[ORM\Id] |
||
12 | #[ORM\GeneratedValue] |
||
13 | #[ORM\Column] |
||
14 | /** @phpstan-ignore-next-line */ |
||
15 | private ?int $id = null; |
||
16 | |||
17 | #[ORM\Column(length: 255)] |
||
18 | private ?string $name = null; |
||
19 | |||
20 | #[ORM\Column] |
||
21 | private ?int $value = null; |
||
22 | |||
23 | public function getId(): ?int |
||
24 | { |
||
25 | return $this->id; |
||
26 | } |
||
27 | |||
28 | public function getName(): ?string |
||
29 | { |
||
30 | return $this->name; |
||
31 | } |
||
32 | |||
33 | public function setName(string $name): static |
||
34 | { |
||
35 | $this->name = $name; |
||
36 | |||
37 | return $this; |
||
38 | } |
||
39 | |||
40 | public function getValue(): ?int |
||
43 | } |
||
44 | |||
45 | public function setValue(int $value): static |
||
50 | } |
||
51 | } |
||
52 |