ClassReflection
extends ReflectionClass
in package
implements
ReflectionInterface
Table of Contents
Interfaces
- ReflectionInterface
Properties
- $docBlock : DocBlockReflection|null
Methods
- __toString() : string
- getContents() : string
- Return the contents of the class
- getDocBlock() : DocBlockReflection|false
- Return the classes DocBlock reflection object
- getInterfaces() : array<string|int, ClassReflection>
- Get all reflection objects of implemented interfaces
- getMethod() : MethodReflection
- Return method reflection by name
- getMethods() : array<string|int, MethodReflection>
- Get reflection objects of all methods
- getParentClass() : ClassReflection|bool
- Get parent reflection class of reflected class
- getProperties() : array<string|int, PropertyReflection>
- Return reflection properties of this class
- getProperty() : PropertyReflection
- Return reflection property of this class by name
- getStartLine() : int
- Return the start line of the class
- getTraits() : null|array<string|int, mixed>
- Returns an array of reflection classes of traits used by this class.
- toString() : string
Properties
$docBlock
protected
DocBlockReflection|null
$docBlock
Methods
__toString()
public
__toString() : string
Return values
stringgetContents()
Return the contents of the class
public
getContents([bool $includeDocBlock = true ]) : string
Parameters
- $includeDocBlock : bool = true
Return values
stringgetDocBlock()
Return the classes DocBlock reflection object
public
getDocBlock() : DocBlockReflection|false
Tags
Return values
DocBlockReflection|falsegetInterfaces()
Get all reflection objects of implemented interfaces
public
getInterfaces() : array<string|int, ClassReflection>
Return values
array<string|int, ClassReflection>getMethod()
Return method reflection by name
public
getMethod(string $name) : MethodReflection
Parameters
- $name : string
Return values
MethodReflectiongetMethods()
Get reflection objects of all methods
public
getMethods([int $filter = -1 ]) : array<string|int, MethodReflection>
Parameters
- $filter : int = -1
Return values
array<string|int, MethodReflection>getParentClass()
Get parent reflection class of reflected class
public
getParentClass() : ClassReflection|bool
Return values
ClassReflection|boolgetProperties()
Return reflection properties of this class
public
getProperties([int $filter = -1 ]) : array<string|int, PropertyReflection>
Parameters
- $filter : int = -1
Return values
array<string|int, PropertyReflection>getProperty()
Return reflection property of this class by name
public
getProperty(string $name) : PropertyReflection
Parameters
- $name : string
Return values
PropertyReflectiongetStartLine()
Return the start line of the class
public
getStartLine([bool $includeDocComment = false ]) : int
Parameters
- $includeDocComment : bool = false
Return values
intgetTraits()
Returns an array of reflection classes of traits used by this class.
public
getTraits() : null|array<string|int, mixed>
Return values
null|array<string|int, mixed>toString()
public
toString() : string