Methods

__construct()

__construct() 

inherited_from ReflectionClass::__construct()

__toString()

__toString() : string

Returns

string

export()

export() 

inherited_from ReflectionClass::export()

getAnnotations()

getAnnotations(\Zend\Code\Annotation\AnnotationManager $annotationManager) : \Zend\Code\Annotation\AnnotationCollection

getConstant()

getConstant() 

inherited_from ReflectionClass::getConstant()

getConstants()

getConstants() 

inherited_from ReflectionClass::getConstants()

getConstructor()

getConstructor() 

inherited_from ReflectionClass::getConstructor()

Return the contents of the class

getContents(bool $includeDocBlock) : string

Parameters

$includeDocBlock

bool

Returns

string

Return the reflection file of the declaring file.

getDeclaringFile() : \Zend\Code\Reflection\FileReflection

getDefaultProperties()

getDefaultProperties() 

inherited_from ReflectionClass::getDefaultProperties()

Return the classes DocBlock reflection object

getDocBlock() : \Zend\Code\Reflection\DocBlockReflection

Exceptions

\Zend\Code\Reflection\Exception\ExceptionInterface for missing DocBock or invalid reflection class

Returns

getDocComment()

getDocComment() 

inherited_from ReflectionClass::getDocComment()

getEndLine()

getEndLine() 

inherited_from ReflectionClass::getEndLine()

getExtension()

getExtension() 

inherited_from ReflectionClass::getExtension()

getExtensionName()

getExtensionName() 

inherited_from ReflectionClass::getExtensionName()

getFileName()

getFileName() 

inherited_from ReflectionClass::getFileName()

getInterfaceNames()

getInterfaceNames() 

inherited_from ReflectionClass::getInterfaceNames()

Get all reflection objects of implemented interfaces

getInterfaces() : \Zend\Code\Reflection\ClassReflection[]

Return method reflection by name

getMethod(string $name) : \Zend\Code\Reflection\MethodReflection

Parameters

$name

string

Returns

Get reflection objects of all methods

getMethods(int $filter) : \Zend\Code\Reflection\MethodReflection[]

Parameters

$filter

int

Returns

getModifiers()

getModifiers() 

inherited_from ReflectionClass::getModifiers()

getName()

getName() 

inherited_from ReflectionClass::getName()

getNamespaceName()

getNamespaceName() 

inherited_from ReflectionClass::getNamespaceName()

Get parent reflection class of reflected class

getParentClass() : \Zend\Code\Reflection\ClassReflection | bool

Return reflection properties of this class

getProperties(int $filter) : \Zend\Code\Reflection\PropertyReflection[]

Parameters

$filter

int

Returns

Return reflection property of this class by name

getProperty(string $name) : \Zend\Code\Reflection\PropertyReflection

Parameters

$name

string

Returns

getShortName()

getShortName() 

inherited_from ReflectionClass::getShortName()

Return the start line of the class

getStartLine(bool $includeDocComment) : int

Parameters

$includeDocComment

bool

Returns

int

getStaticProperties()

getStaticProperties() 

inherited_from ReflectionClass::getStaticProperties()

getStaticPropertyValue()

getStaticPropertyValue() 

inherited_from ReflectionClass::getStaticPropertyValue()

getTraitAliases()

getTraitAliases() 

inherited_from ReflectionClass::getTraitAliases()

getTraitNames()

getTraitNames() 

inherited_from ReflectionClass::getTraitNames()

Returns an array of reflection classes of traits used by this class.

getTraits() : array | null

Returns

arraynull

hasConstant()

hasConstant() 

inherited_from ReflectionClass::hasConstant()

hasMethod()

hasMethod() 

inherited_from ReflectionClass::hasMethod()

hasProperty()

hasProperty() 

inherited_from ReflectionClass::hasProperty()

implementsInterface()

implementsInterface() 

inherited_from ReflectionClass::implementsInterface()

inNamespace()

inNamespace() 

inherited_from ReflectionClass::inNamespace()

isAbstract()

isAbstract() 

inherited_from ReflectionClass::isAbstract()

isCloneable()

isCloneable() 

inherited_from ReflectionClass::isCloneable()

isFinal()

isFinal() 

inherited_from ReflectionClass::isFinal()

isInstance()

isInstance() 

inherited_from ReflectionClass::isInstance()

isInstantiable()

isInstantiable() 

inherited_from ReflectionClass::isInstantiable()

isInterface()

isInterface() 

inherited_from ReflectionClass::isInterface()

isInternal()

isInternal() 

inherited_from ReflectionClass::isInternal()

isIterateable()

isIterateable() 

inherited_from ReflectionClass::isIterateable()

isSubclassOf()

isSubclassOf() 

inherited_from ReflectionClass::isSubclassOf()

isTrait()

isTrait() 

inherited_from ReflectionClass::isTrait()

isUserDefined()

isUserDefined() 

inherited_from ReflectionClass::isUserDefined()

newInstance()

newInstance() 

inherited_from ReflectionClass::newInstance()

newInstanceArgs()

newInstanceArgs() 

inherited_from ReflectionClass::newInstanceArgs()

newInstanceWithoutConstructor()

newInstanceWithoutConstructor() 

inherited_from ReflectionClass::newInstanceWithoutConstructor()

setStaticPropertyValue()

setStaticPropertyValue() 

inherited_from ReflectionClass::setStaticPropertyValue()

toString()

toString() : string

Returns

string

Creates a new FileScanner instance.

createFileScanner(string $filename) : \Zend\Code\Scanner\FileScanner

By having this as a seperate method it allows the method to be overridden if a different FileScanner is needed.

Parameters

$filename

string

Returns

 Properties

 

$annotations

$annotations : \Zend\Code\Scanner\AnnotationScanner