Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | trait HasName |
||
13 | { |
||
14 | #[ORM\Column(type: 'string', length: 191)] |
||
15 | private string $name = ''; |
||
16 | |||
17 | /** |
||
18 | * Constructor. |
||
19 | */ |
||
20 | public function __construct(string $name = '') |
||
21 | { |
||
22 | $this->setName($name); |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * Set name. |
||
27 | */ |
||
28 | public function setName(string $name): void |
||
29 | { |
||
30 | $this->name = $name; |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Get name. |
||
35 | */ |
||
36 | public function getName(): string |
||
39 | } |
||
40 | } |
||
41 |