Total Complexity | 3 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | trait NameTrait |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * @var string |
||
10 | */ |
||
11 | private $name; |
||
12 | |||
13 | /** |
||
14 | * @return string |
||
15 | */ |
||
16 | public function getName(): string |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * @param string $name |
||
23 | * @return $this |
||
24 | */ |
||
25 | protected function setName(string $name) |
||
26 | { |
||
27 | $this->name = $name; |
||
28 | |||
29 | return $this; |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @return string |
||
34 | */ |
||
35 | public function __toString(): string |
||
38 | } |
||
39 | } |
||
40 |