class NikicInterfaceNode implements InterfaceNode (View source)

Adapter for nikic/php-parser Interface_ nodes.

Wraps Interface_ and provides parser-agnostic access to interface properties.

Methods

__construct(Interface_ $interface)

No description

string
getName()

Get the interface name.

string
getNamespace()

Get the interface namespace.

void
setNamespace(string $namespace)

Set the namespace for this interface.

array
getParentInterfaceNames()

Get parent interface names (interfaces this interface extends).

array
getMethods()

Get the interface methods.

array
getConstants()

Get the interface constants.

getDocComment()

Get the doc comment, or null if no doc comment.

array
getAttributes()

Get the attributes for this interface.

Details

__construct(Interface_ $interface)

No description

Parameters

Interface_ $interface

string getName()

Get the interface name.

Return Value

string

string getNamespace()

Get the interface namespace.

Return Value

string

void setNamespace(string $namespace)

Set the namespace for this interface.

Parameters

string $namespace

Return Value

void

array getParentInterfaceNames()

Get parent interface names (interfaces this interface extends).

Return Value

array

array getMethods()

Get the interface methods.

Return Value

array

array getConstants()

Get the interface constants.

Return Value

array

DocCommentNode|null getDocComment()

Get the doc comment, or null if no doc comment.

Return Value

DocCommentNode|null

array getAttributes()

Get the attributes for this interface.

Return Value

array