category Zend
package Zend_Reflection

 Methods

Constructor

__construct(string $filename) : \Zend\Code\Reflection\FileReflection

Serialize to string

__toString() : string

Required by the Reflector interface

todo What should this serialization look like?

Returns

string

Export

export() : null

Required by the Reflector interface.

todo What should this do?

Returns

null

Retrieve the reflection class of a given class found in this file

getClass(null | string $name) : \Zend\Code\Reflection\ClassReflection

Parameters

$name

nullstring

Exceptions

\Zend\Code\Reflection\Exception\InvalidArgumentException for invalid class name or invalid reflection class

Returns

Return the reflection classes of the classes found inside this file

getClasses() : array

Returns

arrayArray of \Zend\Code\Reflection\ReflectionClass instances

Return the full contents of file

getContents() : string

Returns

string

Return the doc comment

getDocComment() : string

Returns

string

Get the end line / number of lines

getEndLine() : int

Returns

int

Return the file name of the reflected file

getFileName() : string

Returns

string

Return the reflection functions of the functions found inside this file

getFunctions() : array

Returns

arrayArray of Zend_Reflection_Functions

getNamespace()

getNamespace() : string

Returns

string

getNamespaces()

getNamespaces() 

Get the start line - Always 1, staying consistent with the Reflection API

getStartLine() : int

Returns

int

getUses()

getUses() : string[]

Returns

string[]

toString()

toString() 

Validate / check a file level DocBlock

checkFileDocBlock(array $tokens) : void

Parameters

$tokens

array

Array of tokenizer tokens

This method does the work of "reflecting" the file

reflect() : void

Uses Zend\Code\Scanner\FileScanner to gather file information

 Properties

 

$classes

$classes : \Zend\Code\Reflection\ReflectionClass[]

 

$contents

$contents : string

 

$docComment

$docComment : string

 

$endLine

$endLine : int

 

$filePath

$filePath : string

 

$functions

$functions : \Zend\Code\Reflection\FunctionReflection[]

 

$namespaces

$namespaces : string

 

$requiredFiles

$requiredFiles : string[]

 

$startLine

$startLine : int

 

$uses

$uses : string[]