Total Complexity | 4 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 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 | public function __construct(string $name) |
||
18 | { |
||
19 | $this->name = $name; |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * @param string $description |
||
24 | * |
||
25 | * @return TagDoc |
||
26 | */ |
||
27 | public function setDescription(string $description) : TagDoc |
||
28 | { |
||
29 | $this->description = $description; |
||
30 | |||
31 | return $this; |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @return string |
||
36 | */ |
||
37 | public function getName() : string |
||
38 | { |
||
39 | return $this->name; |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @return null|string |
||
44 | */ |
||
45 | public function getDescription() |
||
48 | } |
||
49 | } |
||
50 |