Documentation

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

Methods

getContents()

Return the contents of the class

public getContents([bool $includeDocBlock = true ]) : string
Parameters
$includeDocBlock : bool = true
Return values
string

getStartLine()

Return the start line of the class

public getStartLine([bool $includeDocComment = false ]) : int
Parameters
$includeDocComment : bool = false
Return values
int

getTraits()

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>

        
On this page

Search results