Class ClassReflection

Summary

Fully Qualified Name: Laminas\Code\Reflection\ClassReflection
Extends: ReflectionClass
Implements: ReflectionInterface

Description

Methods

Name Description Defined By
__toString() ClassReflection
getAnnotations() ClassReflection
getContents() Return the contents of the class ClassReflection
getDeclaringFile() Return the reflection file of the declaring file. ClassReflection
getDocBlock() Return the classes DocBlock reflection object ClassReflection
getInterfaces() Get all reflection objects of implemented interfaces ClassReflection
getMethod() Return method reflection by name ClassReflection
getMethods() Get reflection objects of all methods ClassReflection
getParentClass() Get parent reflection class of reflected class ClassReflection
getProperties() Return reflection properties of this class ClassReflection
getProperty() Return reflection property of this class by name ClassReflection
getStartLine() Return the start line of the class ClassReflection
getTraits() Returns an array of reflection classes of traits used by this class. ClassReflection
toString() ClassReflection

Method Details

__toString()

Returns: string

getAnnotations()

Parameter Name Type Description
$annotationManager \AnnotationManager

Returns: \AnnotationCollection|bool

getContents()

Return the contents of the class

Parameter Name Type Description
$includeDocBlock bool

Returns: string

getDeclaringFile()

Return the reflection file of the declaring file.

Returns: \FileReflection

getDocBlock()

Return the classes DocBlock reflection object

Returns: \DocBlockReflection|bool

getInterfaces()

Get all reflection objects of implemented interfaces

Returns: \ClassReflection[]

getMethod()

Return method reflection by name

Parameter Name Type Description
$name string

Returns: \MethodReflection

getMethods()

Get reflection objects of all methods

Parameter Name Type Description
$filter int

Returns: \MethodReflection[]

getParentClass()

Get parent reflection class of reflected class

Returns: \ClassReflection|bool

getProperties()

Return reflection properties of this class

Parameter Name Type Description
$filter int

Returns: \PropertyReflection[]

getProperty()

Return reflection property of this class by name

Parameter Name Type Description
$name string

Returns: \PropertyReflection

getStartLine()

Return the start line of the class

Parameter Name Type Description
$includeDocComment bool

Returns: int

getTraits()

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

Returns: null|array

toString()

Returns: string

Top