1: | <?php declare(strict_types = 1); |
2: | |
3: | namespace PHPStan\PhpDocParser\Ast\PhpDoc; |
4: | |
5: | use PHPStan\PhpDocParser\Ast\NodeAttributes; |
6: | use function trim; |
7: | |
8: | class DeprecatedTagValueNode implements PhpDocTagValueNode |
9: | { |
10: | |
11: | use NodeAttributes; |
12: | |
13: | |
14: | public string $description; |
15: | |
16: | public function __construct(string $description) |
17: | { |
18: | $this->description = $description; |
19: | } |
20: | |
21: | |
22: | public function __toString(): string |
23: | { |
24: | return trim($this->description); |
25: | } |
26: | |
27: | } |
28: | |