NikicMethodNode
class NikicMethodNode implements MethodNode (View source)
Adapter for nikic/php-parser ClassMethod nodes.
Implements complete MethodNode interface.
Methods
No description
Get the method name.
Check if the method is public.
Check if the method is protected.
Check if the method is private.
Check if the method is static.
Check if the method is final.
Check if the method is abstract.
No description
Get the return type, or null if no return type.
Get the doc comment, or null if no doc comment.
Get the method attributes (PHP 8.0+).
Details
__construct(ClassMethod $method)
No description
string
getName()
Get the method name.
bool
isPublic()
Check if the method is public.
bool
isProtected()
Check if the method is protected.
bool
isPrivate()
Check if the method is private.
bool
isStatic()
Check if the method is static.
bool
isFinal()
Check if the method is final.
bool
isAbstract()
Check if the method is abstract.
array
getParameters()
No description
TypeNode|null
getReturnType()
Get the return type, or null if no return type.
DocCommentNode|null
getDocComment()
Get the doc comment, or null if no doc comment.
array
getAttributes()
Get the method attributes (PHP 8.0+).