| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 75% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 16 | class Tag |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @ORM\Id() |
||
| 20 | * @ORM\GeneratedValue() |
||
| 21 | * @ORM\Column(type="integer") |
||
| 22 | */ |
||
| 23 | private ?int $id = null; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @ORM\Column(type="string", length=255, unique=true) |
||
| 27 | */ |
||
| 28 | private string $name; |
||
| 29 | |||
| 30 | 1 | public function __toString(): string |
|
| 31 | { |
||
| 32 | 1 | return $this->name; |
|
| 33 | } |
||
| 34 | |||
| 35 | public function getId(): ?int |
||
| 36 | { |
||
| 37 | return $this->id; |
||
| 38 | } |
||
| 39 | |||
| 40 | 9 | public function getName(): ?string |
|
| 43 | } |
||
| 44 | |||
| 45 | 1 | public function setName(string $name): void |
|
| 48 | } |
||
| 49 | } |
||
| 50 |