PHP Class Neos\Flow\Reflection\ClassReflection

Inheritance: extends ReflectionClass
Mostrar archivo Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$docCommentParser Holds an instance of the doc comment parser for this class

Public Methods

Method 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.

Protected Methods

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

Method Details

__construct() public method

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

getConstructor() public method

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

getDescription() public method

Returns the description part of the doc comment
public getDescription ( ) : string
return string Doc comment description

getDocCommentParser() protected method

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

getInterfaces() public method

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

getMethod() public method

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
return MethodReflection Method reflection object of the named method

getMethods() public method

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
return MethodReflection Method reflection objects of the methods in this class

getParentClass() public method

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

getProperties() public method

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
return array

getProperty() public method

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
return PropertyReflection Property reflection object of the specified property in this class

getTagValues() public method

Returns the values of the specified tag
public getTagValues ( string $tag ) : array
$tag string
return array Values of the given tag

getTagsValues() public method

Returns an array of tags and their values
public getTagsValues ( ) : array
return array Tags and values

isTaggedWith() public method

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
return boolean TRUE if such a tag has been defined, otherwise FALSE

newInstanceWithoutConstructor() public method

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