PHP Class Neos\Flow\Reflection\MethodReflection

Inheritance: extends ReflectionMethod
Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$docCommentParser

Méthodes publiques

Méthode Description
getDeclaredReturnType ( ) : string
getDeclaringClass ( ) : ClassReflection Returns the declaring class
getDescription ( ) : string Returns the description part of the doc comment
getParameters ( ) : array Replacement for the original getParameters() method which makes sure that ParameterReflection objects are returned instead of the original ReflectionParameter instances.
getTagValues ( string $tag ) : array Returns the values of the specified tag
getTagsValues ( ) : array Returns an array of tags and their values
isTaggedWith ( string $tag ) : boolean Checks if the doc comment of this method is tagged with the specified tag

Méthodes protégées

Méthode Description
getDocCommentParser ( ) : DocCommentParser Returns an instance of the doc comment parser and runs the parse() method.

Method Details

getDeclaredReturnType() public méthode

public getDeclaredReturnType ( ) : string
Résultat string The name of a type (e.g. string, \stdClass) if it was declared as a return type, null otherwise

getDeclaringClass() public méthode

Returns the declaring class
public getDeclaringClass ( ) : ClassReflection
Résultat ClassReflection The declaring class

getDescription() public méthode

Returns the description part of the doc comment
public getDescription ( ) : string
Résultat string Doc comment description

getDocCommentParser() protected méthode

Returns an instance of the doc comment parser and runs the parse() method.
protected getDocCommentParser ( ) : DocCommentParser
Résultat DocCommentParser

getParameters() public méthode

Replacement for the original getParameters() method which makes sure that ParameterReflection objects are returned instead of the original ReflectionParameter instances.
public getParameters ( ) : array
Résultat array

getTagValues() public méthode

Returns the values of the specified tag
public getTagValues ( string $tag ) : array
$tag string Tag name to check for
Résultat array Values of the given tag

getTagsValues() public méthode

Returns an array of tags and their values
public getTagsValues ( ) : array
Résultat array Tags and values

isTaggedWith() public méthode

Checks if the doc comment of this method is tagged with the specified tag
public isTaggedWith ( string $tag ) : boolean
$tag string Tag name to check for
Résultat boolean TRUE if such a tag has been defined, otherwise FALSE

Property Details

$docCommentParser protected_oe property

protected $docCommentParser