mediatekformation

ClassReflection extends ReflectionClass
in package
implements ReflectionInterface

Interfaces, Classes, Traits and Enums

ReflectionInterface

Table of Contents

$annotations  : AnnotationScanner
$docBlock  : DocBlockReflection
__toString()  : string
getAnnotations()  : AnnotationCollection|false
getContents()  : string
Return the contents of the class
getDeclaringFile()  : FileReflection
Return the reflection file of the declaring file.
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
createFileScanner()  : FileScanner
Creates a new FileScanner instance.

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>

createFileScanner()

Creates a new FileScanner instance.

protected createFileScanner(string $filename) : FileScanner

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

Parameters
$filename : string
Return values
FileScanner

Search results