| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | trait EntityNameTrait |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @ORM\Column(type="string", length=255) |
||
| 13 | */ |
||
| 14 | private ?string $name; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @ORM\Column(type="string", length=255) |
||
| 18 | */ |
||
| 19 | private ?string $slug; |
||
| 20 | |||
| 21 | public function getName(): ?string |
||
| 22 | { |
||
| 23 | return $this->name; |
||
| 24 | } |
||
| 25 | |||
| 26 | public function setName(string $name): self |
||
| 27 | { |
||
| 28 | $this->name = $name; |
||
| 29 | |||
| 30 | return $this; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function getSlug(): ?string |
||
| 36 | } |
||
| 37 | |||
| 38 | public function setSlug(string $slug): self |
||
| 43 | } |
||
| 44 | } |
||
| 45 |