TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
MethodReflection Class Reference
Inheritance diagram for MethodReflection:

Public Member Functions

 getDeclaringClass ()
 
 getParameters ()
 
 isTaggedWith ($tag)
 
 getTagsValues ()
 
 getTagValues ($tag)
 
 getDescription ()
 

Protected Member Functions

 getDocCommentParser ()
 

Protected Attributes

 $docCommentParser
 

Detailed Description

Extended version of the ReflectionMethod

Definition at line 20 of file MethodReflection.php.

Member Function Documentation

getDeclaringClass ( )

Returns the declaring class

Returns
ClassReflection The declaring class

Definition at line 32 of file MethodReflection.php.

Referenced by MethodReflection\getParameters().

getDescription ( )

Returns the description part of the doc comment

Returns
string Doc comment description

Definition at line 92 of file MethodReflection.php.

References MethodReflection\getDocCommentParser().

getDocCommentParser ( )
protected

Returns an instance of the doc comment parser and runs the parse() method.

Returns
DocCommentParser

Definition at line 103 of file MethodReflection.php.

References MethodReflection\$docCommentParser.

Referenced by MethodReflection\getDescription(), MethodReflection\getTagsValues(), MethodReflection\getTagValues(), and MethodReflection\isTaggedWith().

getParameters ( )

Replacement for the original getParameters() method which makes sure that objects are returned instead of the original ReflectionParameter instances.

Returns
ParameterReflection[] Parameter reflection objects of the parameters of this method

Definition at line 44 of file MethodReflection.php.

References MethodReflection\getDeclaringClass().

getTagsValues ( )

Returns an array of tags and their values

Returns
array Tags and values

Definition at line 71 of file MethodReflection.php.

References MethodReflection\getDocCommentParser().

getTagValues (   $tag)

Returns the values of the specified tag

Parameters
string$tagTag name to check for
Returns
array Values of the given tag

Definition at line 82 of file MethodReflection.php.

References MethodReflection\getDocCommentParser().

isTaggedWith (   $tag)

Checks if the doc comment of this method is tagged with the specified tag

Parameters
string$tagTag name to check for
Returns
bool TRUE if such a tag has been defined, otherwise FALSE

Definition at line 60 of file MethodReflection.php.

References MethodReflection\getDocCommentParser().

Member Data Documentation

$docCommentParser
protected

Definition at line 25 of file MethodReflection.php.

Referenced by MethodReflection\getDocCommentParser().