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: /** @var string */
13: public $name;
14:
15: public function __construct(string $name)
16: {
17: $this->name = $name;
18: }
19:
20:
21: public function __toString(): string
22: {
23: return $this->name;
24: }
25:
26: }
27: