interface InterfaceNode (View source)

Parser-agnostic interface for interface AST nodes.

Exposes all interface properties needed for complete parsing.

Methods

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

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