AttributeNode
interface AttributeNode (View source)
Parser-agnostic interface for attribute AST nodes.
Represents PHP 8.0+ attributes (e.g., #[AttributeName(...)])
Methods
string
getName()
Get the attribute name (e.g., "LanguageLevelTypeAware").
array
getArguments()
Get the attribute arguments.
Details
string
getName()
Get the attribute name (e.g., "LanguageLevelTypeAware").
array
getArguments()
Get the attribute arguments.
Returns an associative array where keys are argument names (or numeric for positional args).