PHP Class Neos\Flow\Reflection\ClassReflection

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

Protected Properties

Свойство Type Description
$docCommentParser Holds an instance of the doc comment parser for this class

Méthodes publiques

Méthode Description
__construct ( mixed $classNameOrObject )
getConstructor ( ) : MethodReflection Replacement for the original getConstructor() method which makes sure that MethodReflection objects are returned instead of the original ReflectionMethod instances.
getDescription ( ) : string Returns the description part of the doc comment
getInterfaces ( ) : array Replacement for the original getInterfaces() method which makes sure that ClassReflection objects are returned instead of the original ReflectionClass instances.
getMethod ( string $name ) : MethodReflection Replacement for the original getMethod() method which makes sure that MethodReflection objects are returned instead of the orginal ReflectionMethod instances.
getMethods ( integer $filter = null ) : MethodReflection Replacement for the original getMethods() method which makes sure that MethodReflection objects are returned instead of the original ReflectionMethod instances.
getParentClass ( ) : ClassReflection Replacement for the original getParentClass() method which makes sure that a ClassReflection object is returned instead of the orginal ReflectionClass instance.
getProperties ( integer $filter = null ) : array Replacement for the original getProperties() method which makes sure that PropertyReflection objects are returned instead of the orginal ReflectionProperty instances.
getProperty ( string $name ) : PropertyReflection Replacement for the original getProperty() method which makes sure that a PropertyReflection object is returned instead of the orginal ReflectionProperty instance.
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
newInstanceWithoutConstructor ( ) : object Creates a new class instance without invoking the constructor.

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

__construct() public méthode

public __construct ( mixed $classNameOrObject )
$classNameOrObject mixed the name of the class or the object to be reflected.

getConstructor() public méthode

Replacement for the original getConstructor() method which makes sure that MethodReflection objects are returned instead of the original ReflectionMethod instances.
public getConstructor ( ) : MethodReflection
Résultat MethodReflection Method reflection object of the constructor method

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

getInterfaces() public méthode

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

getMethod() public méthode

Replacement for the original getMethod() method which makes sure that MethodReflection objects are returned instead of the orginal ReflectionMethod instances.
public getMethod ( string $name ) : MethodReflection
$name string
Résultat MethodReflection Method reflection object of the named method

getMethods() public méthode

Replacement for the original getMethods() method which makes sure that MethodReflection objects are returned instead of the original ReflectionMethod instances.
public getMethods ( integer $filter = null ) : MethodReflection
$filter integer A filter mask
Résultat MethodReflection Method reflection objects of the methods in this class

getParentClass() public méthode

Replacement for the original getParentClass() method which makes sure that a ClassReflection object is returned instead of the orginal ReflectionClass instance.
public getParentClass ( ) : ClassReflection
Résultat ClassReflection Reflection of the parent class - if any

getProperties() public méthode

Replacement for the original getProperties() method which makes sure that PropertyReflection objects are returned instead of the orginal ReflectionProperty instances.
public getProperties ( integer $filter = null ) : array
$filter integer A filter mask
Résultat array

getProperty() public méthode

Replacement for the original getProperty() method which makes sure that a PropertyReflection object is returned instead of the orginal ReflectionProperty instance.
public getProperty ( string $name ) : PropertyReflection
$name string Name of the property
Résultat PropertyReflection Property reflection object of the specified property in this class

getTagValues() public méthode

Returns the values of the specified tag
public getTagValues ( string $tag ) : array
$tag string
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

newInstanceWithoutConstructor() public méthode

Overridden to make sure DI works even when instances are created using newInstanceWithoutConstructor()
See also: https://github.com/doctrine/doctrine2/commit/530c01b5e3ed7345cde564bd511794ac72f49b65

Property Details

$docCommentParser protected_oe property

Holds an instance of the doc comment parser for this class
protected $docCommentParser