ClassReflection
class ClassReflection extends ReflectionClass (View source)
Extended version of the ReflectionClass
Properties
protected DocCommentParser | $docCommentParser |
Methods
No description
Replacement for the original getConstructor() method which makes sure that MethodReflection objects are returned instead of the original ReflectionMethod instances.
Replacement for the original getInterfaces() method which makes sure that ClassReflection objects are returned instead of the original ReflectionClass instances.
Replacement for the original getMethod() method which makes sure that MethodReflection objects are returned instead of the orginal ReflectionMethod instances.
Replacement for the original getMethods() method which makes sure that MethodReflection objects are returned instead of the original ReflectionMethod instances.
Replacement for the original getParentClass() method which makes sure that a ClassReflection object is returned instead of the orginal ReflectionClass instance.
Replacement for the original getProperties() method which makes sure that PropertyReflection objects are returned instead of the orginal ReflectionProperty instances.
Replacement for the original getProperty() method which makes sure that a PropertyReflection object is returned instead of the orginal ReflectionProperty instance.
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
Creates a new class instance without invoking the constructor.
Returns an instance of the doc comment parser and runs the parse() method.
Details
__construct(mixed $classNameOrObject)
No description
MethodReflection
getConstructor()
Replacement for the original getConstructor() method which makes sure that MethodReflection objects are returned instead of the original ReflectionMethod instances.
ClassReflection[]
getInterfaces()
Replacement for the original getInterfaces() method which makes sure that ClassReflection objects are returned instead of the original ReflectionClass instances.
MethodReflection
getMethod(string $name)
Replacement for the original getMethod() method which makes sure that MethodReflection objects are returned instead of the orginal ReflectionMethod instances.
MethodReflection[]
getMethods(int $filter = null)
Replacement for the original getMethods() method which makes sure that MethodReflection objects are returned instead of the original ReflectionMethod instances.
ClassReflection
getParentClass()
Replacement for the original getParentClass() method which makes sure that a ClassReflection object is returned instead of the orginal ReflectionClass instance.
PropertyReflection[]
getProperties(int $filter = null)
Replacement for the original getProperties() method which makes sure that PropertyReflection objects are returned instead of the orginal ReflectionProperty instances.
PropertyReflection
getProperty(string $name)
Replacement for the original getProperty() method which makes sure that a PropertyReflection object is returned instead of the orginal ReflectionProperty instance.
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
object
newInstanceWithoutConstructor()
Creates a new class instance without invoking the constructor.
Overridden to make sure DI works even when instances are created using newInstanceWithoutConstructor()
protected DocCommentParser
getDocCommentParser()
Returns an instance of the doc comment parser and runs the parse() method.