NikicInterfaceNode
class NikicInterfaceNode implements InterfaceNode (View source)
Adapter for nikic/php-parser Interface_ nodes.
Wraps Interface_ and provides parser-agnostic access to interface properties.
Methods
No description
Get the interface name.
Get the interface namespace.
Set the namespace for this interface.
Get parent interface names (interfaces this interface extends).
Get the interface methods.
Get the interface constants.
Get the doc comment, or null if no doc comment.
Get the attributes for this interface.
Details
__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.
DocCommentNode|null
getDocComment()
Get the doc comment, or null if no doc comment.
array
getAttributes()
Get the attributes for this interface.