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