package Default

 Methods

__toString()

__toString() : string

Returns

string

getAnnotations()

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

Parameters

$annotationManager

\Zend\Code\Annotation\AnnotationManager

Returns

\Zend\Code\Annotation\AnnotationCollection

Return the contents of the class

getContents(boolean $includeDocBlock = true) : string

Parameters

$includeDocBlock

boolean

Returns

string

Return the reflection file of the declaring file.

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

Returns

\Zend\Code\Reflection\FileReflection

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

\Zend\Code\Reflection\DocBlockReflection

Get all reflection objects of implemented interfaces

getInterfaces() : array<mixed,\Zend\Code\Reflection\ClassReflection>

Returns

array<mixed,\Zend\Code\Reflection\ClassReflection>

Return method reflection by name

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

Parameters

$name

string

Returns

\Zend\Code\Reflection\MethodReflection

Get reflection objects of all methods

getMethods(integer $filter = -1) : array<mixed,\Zend\Code\Reflection\MethodReflection>

Parameters

$filter

integer

Returns

array<mixed,\Zend\Code\Reflection\MethodReflection>

Get parent reflection class of reflected class

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

Returns

\Zend\Code\Reflection\ClassReflectionboolean

Return reflection properties of this class

getProperties(integer $filter = -1) : array<mixed,\Zend\Code\Reflection\PropertyReflection>

Parameters

$filter

integer

Returns

array<mixed,\Zend\Code\Reflection\PropertyReflection>

Return reflection property of this class by name

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

Parameters

$name

string

Returns

\Zend\Code\Reflection\PropertyReflection

Return the start line of the class

getStartLine(boolean $includeDocComment = false) : integer

Parameters

$includeDocComment

boolean

Returns

integer

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

getTraits() : array | null

Returns

arraynull

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

\Zend\Code\Scanner\FileScanner

 Properties

 

$annotations

$annotations : \Zend\Code\Scanner\AnnotationScanner

Default

null
 

$docBlock

$docBlock : \Zend\Code\Reflection\DocBlockReflection

Default

null