Skip to content

Commit f3c4615

Browse files
committed
missing file
1 parent fddfc32 commit f3c4615

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/Ast/Type/CommentNode.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php declare(strict_types = 1);
2+
3+
namespace PHPStan\PhpDocParser\Ast\Type;
4+
5+
use PHPStan\PhpDocParser\Ast\NodeAttributes;
6+
7+
class CommentNode implements TypeNode
8+
{
9+
10+
use NodeAttributes;
11+
12+
public string $text;
13+
14+
public function __construct(string $text)
15+
{
16+
$this->text = $text;
17+
}
18+
public function __toString(): string
19+
{
20+
return '// ' . $this->text;
21+
}
22+
23+
}

0 commit comments

Comments
 (0)