Interface PHPStan\PhpDocParser\Ast\Type\NameNode

extends TypeNode

A class-like name, as opposed to a keyword like int, mixed or non-falsy-string, which is an IdentifierTypeNode.

The parser never produces name nodes, because it does not know which identifiers are keywords. They are created by tools that do, for example when turning a resolved type back into a PHPDoc node.

Methods
Methods inherited from PHPStan\PhpDocParser\Ast\Node
__toString(), setAttribute(), hasAttribute(), getAttribute()