| Total Complexity | 5 |
| Total Lines | 41 |
| 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 | private ?int $id = null; |
||
| 15 | |||
| 16 | #[ORM\Column(length: 255)] |
||
| 17 | private ?string $name = null; |
||
| 18 | |||
| 19 | #[ORM\Column] |
||
| 20 | private ?int $value = null; |
||
| 21 | |||
| 22 | public function getId(): ?int |
||
| 23 | { |
||
| 24 | return $this->id; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function getName(): ?string |
||
| 28 | { |
||
| 29 | return $this->name; |
||
| 30 | } |
||
| 31 | |||
| 32 | public function setName(string $name): static |
||
| 33 | { |
||
| 34 | $this->name = $name; |
||
| 35 | |||
| 36 | return $this; |
||
| 37 | } |
||
| 38 | |||
| 39 | public function getValue(): ?int |
||
| 42 | } |
||
| 43 | |||
| 44 | public function setValue(int $value): static |
||
| 49 | } |
||
| 50 | } |
||
| 51 |