| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class Tag implements TagInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var int |
||
| 16 | * |
||
| 17 | * @ORM\Column(type="integer") |
||
| 18 | * @ORM\Id |
||
| 19 | * @ORM\GeneratedValue(strategy="AUTO") |
||
| 20 | */ |
||
| 21 | protected $id; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string|null |
||
| 25 | * |
||
| 26 | * @ORM\Column() |
||
| 27 | */ |
||
| 28 | protected $name; |
||
| 29 | |||
| 30 | public function __toString(): string |
||
| 31 | { |
||
| 32 | return $this->name ?? ''; |
||
| 33 | } |
||
| 34 | |||
| 35 | public function getId(): int |
||
| 36 | { |
||
| 37 | return $this->id; |
||
| 38 | } |
||
| 39 | |||
| 40 | public function setName(?string $name): void |
||
| 41 | { |
||
| 42 | $this->name = $name; |
||
| 43 | } |
||
| 44 | |||
| 45 | public function getName(): ?string |
||
| 48 | } |
||
| 49 | } |
||
| 50 | |||
| 51 |