1 | <?php |
||
10 | class DocBlock |
||
11 | { |
||
12 | /** |
||
13 | * @var null|string |
||
14 | */ |
||
15 | protected $shortDescription; |
||
16 | |||
17 | /** |
||
18 | * @var null|string |
||
19 | */ |
||
20 | protected $longDescription; |
||
21 | |||
22 | /** |
||
23 | * @var Tag[] |
||
24 | */ |
||
25 | protected $tags = []; |
||
26 | |||
27 | /** |
||
28 | * @param null|string $shortDescription |
||
29 | * @param null|string $longDescription |
||
30 | * @param Tag[] $tags |
||
31 | */ |
||
32 | 1 | public function __construct(string $shortDescription = null, string $longDescription = null, array $tags = []) |
|
38 | |||
39 | /** |
||
40 | * @return null|string |
||
41 | */ |
||
42 | 1 | public function shortDescription(): ?string |
|
46 | |||
47 | /** |
||
48 | * @return null|string |
||
49 | */ |
||
50 | 1 | public function longDescription(): ?string |
|
54 | |||
55 | /** |
||
56 | * @return Tag[] |
||
57 | */ |
||
58 | 1 | public function tags(): array |
|
62 | } |
||
63 |