MethodReflection
class MethodReflection extends ReflectionMethod (View source)
Extended version of the ReflectionMethod
Properties
protected DocCommentParser | $docCommentParser |
Methods
Returns the declaring class
Replacement for the original getParameters() method which makes sure that ParameterReflection objects are returned instead of the original ReflectionParameter instances.
Checks if the doc comment of this method is tagged with the specified tag
Returns an array of tags and their values
Returns the values of the specified tag
Returns the description part of the doc comment
No description
No description
Returns an instance of the doc comment parser and runs the parse() method.
Details
ClassReflection
getDeclaringClass()
Returns the declaring class
ParameterReflection[]
getParameters()
Replacement for the original getParameters() method which makes sure that ParameterReflection objects are returned instead of the original ReflectionParameter instances.
bool
isTaggedWith(string $tag)
Checks if the doc comment of this method is tagged with the specified tag
array
getTagsValues()
Returns an array of tags and their values
array
getTagValues(string $tag)
Returns the values of the specified tag
string
getDescription()
Returns the description part of the doc comment
string|null
getDeclaredReturnType()
No description
bool
isDeclaredReturnTypeNullable()
No description
protected DocCommentParser
getDocCommentParser()
Returns an instance of the doc comment parser and runs the parse() method.