InterfaceNode
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.
DocCommentNode|null
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.
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.
DocCommentNode|null
getDocComment()
Get the doc comment, or null if no doc comment.
array
getAttributes()
Get the attributes for this interface.