Zend Framework  3.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ClassReflection Class Reference

Public Member Functions

 getDeclaringFile ()
 Return the reflection file of the declaring file.
 
 getDocBlock ()
 Return the classes DocBlock reflection object.
 
 getAnnotations (AnnotationManager $annotationManager)
 
 getStartLine ($includeDocComment=false)
 Return the start line of the class.
 
 getContents ($includeDocBlock=true)
 Return the contents of the class.
 
 getInterfaces ()
 Get all reflection objects of implemented interfaces.
 
 getMethod ($name)
 Return method reflection by name.
 
 getMethods ($filter=-1)
 Get reflection objects of all methods.
 
 getTraits ()
 Returns an array of reflection classes of traits used by this class.
 
 getParentClass ()
 Get parent reflection class of reflected class.
 
 getProperty ($name)
 Return reflection property of this class by name.
 
 getProperties ($filter=-1)
 Return reflection properties of this class.
 
 toString ()
 
 __toString ()
 

Protected Member Functions

 createFileScanner ($filename)
 Creates a new FileScanner instance.
 

Protected Attributes

 $annotations = null
 
 $docBlock = null
 

Member Function Documentation

__toString ( )
Returns
string
createFileScanner (   $filename)
protected

Creates a new FileScanner instance.

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

Parameters
string$filename
Returns
FileScanner
getAnnotations ( AnnotationManager  $annotationManager)
Parameters
AnnotationManager$annotationManager
Returns
AnnotationCollection
getContents (   $includeDocBlock = true)

Return the contents of the class.

Parameters
bool$includeDocBlock
Returns
string
getDeclaringFile ( )

Return the reflection file of the declaring file.

Returns
FileReflection
getDocBlock ( )

Return the classes DocBlock reflection object.

Returns
DocBlockReflection
Exceptions
Exception\ExceptionInterfacefor missing DocBock or invalid reflection class
getInterfaces ( )

Get all reflection objects of implemented interfaces.

Returns
ClassReflection[]
getMethod (   $name)

Return method reflection by name.

Parameters
string$name
Returns
MethodReflection
getMethods (   $filter = -1)

Get reflection objects of all methods.

Parameters
int$filter
Returns
MethodReflection[]
getParentClass ( )

Get parent reflection class of reflected class.

Returns
ClassReflection|bool
getProperties (   $filter = -1)

Return reflection properties of this class.

Parameters
int$filter
Returns
PropertyReflection[]
getProperty (   $name)

Return reflection property of this class by name.

Parameters
string$name
Returns
PropertyReflection
getStartLine (   $includeDocComment = false)

Return the start line of the class.

Parameters
bool$includeDocComment
Returns
int
getTraits ( )

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

Returns
array|null
toString ( )
Returns
string

Implements ReflectionInterface.

Member Data Documentation

$annotations = null
protected
$docBlock = null
protected