1: | <?php declare(strict_types=1); |
2: | |
3: | namespace Salient\PHPDoc\Tag; |
4: | |
5: | |
6: | |
7: | |
8: | class ReturnTag extends AbstractTag |
9: | { |
10: | |
11: | |
12: | |
13: | |
14: | |
15: | public function __construct( |
16: | string $type, |
17: | ?string $description = null, |
18: | ?string $class = null, |
19: | ?string $member = null |
20: | ) { |
21: | parent::__construct('return', null, $type, $description, $class, $member); |
22: | $this->Type = $this->filterType($type); |
23: | } |
24: | |
25: | |
26: | |
27: | |
28: | public function getType(): string |
29: | { |
30: | return $this->Type; |
31: | } |
32: | } |
33: | |