class NikicAttributeNode implements AttributeNode (View source)

Adapter for nikic/php-parser Attribute nodes.

Converts PHP AST attribute nodes to parser-agnostic AttributeNode interface.

Methods

__construct(Attribute $attribute)

No description

string
getName()

Get the attribute name (e.g., "LanguageLevelTypeAware").

array
getArguments()

Get the attribute arguments.

Details

__construct(Attribute $attribute)

No description

Parameters

Attribute $attribute

string getName()

Get the attribute name (e.g., "LanguageLevelTypeAware").

Return Value

string

array getArguments()

Get the attribute arguments.

Returns an associative array where keys are argument names (or numeric for positional args).

Return Value

array

Array of arguments, e.g., [0 => ['8.1' => 'string'], 'default' => '']