Total Complexity | 4 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class TagDoc |
||
8 | { |
||
9 | /** @var string */ |
||
10 | private $name; |
||
11 | /** @var string|null */ |
||
12 | private $description = null; |
||
13 | |||
14 | /** |
||
15 | * @param string $name |
||
16 | */ |
||
17 | 8 | public function __construct(string $name) |
|
18 | { |
||
19 | 8 | $this->name = $name; |
|
20 | } |
||
21 | |||
22 | /** |
||
23 | * @param string $description |
||
24 | * |
||
25 | * @return self |
||
26 | */ |
||
27 | 6 | public function setDescription(string $description) : self |
|
32 | } |
||
33 | |||
34 | /** |
||
35 | * @return string |
||
36 | */ |
||
37 | 7 | public function getName() : string |
|
40 | } |
||
41 | |||
42 | /** |
||
43 | * @return null|string |
||
44 | */ |
||
45 | 7 | public function getDescription() : ?string |
|
48 | } |
||
49 | } |
||
50 |