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