1524. Class

1524.1. Zend\Code\Reflection\FileReflection

1524.1.1. Methods

1524.1.1.1. __construct

__construct()

@param string $filename

1524.1.1.2. export

export()

Required by the Reflector interface.

Return type:null

1524.1.1.3. getFileName

getFileName()

Return the file name of the reflected file

Return type:string

1524.1.1.4. getStartLine

getStartLine()

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

Return type:int

1524.1.1.5. getEndLine

getEndLine()

Get the end line / number of lines

Return type:int

1524.1.1.6. getDocComment

getDocComment()

@return string

1524.1.1.7. getDocBlock

getDocBlock()

@return DocBlockReflection

1524.1.1.8. getNamespaces

getNamespaces()

@return array

1524.1.1.9. getNamespace

getNamespace()

@return string

1524.1.1.10. getUses

getUses()

@return array

1524.1.1.11. getClasses

getClasses()

Return the reflection classes of the classes found inside this file

Return type:ClassReflection[]

1524.1.1.12. getFunctions

getFunctions()

Return the reflection functions of the functions found inside this file

Return type:FunctionReflection[]

1524.1.1.13. getClass

getClass()

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

Parameters:null|string
Return type:ClassReflection
Throws :ExceptionInvalidArgumentException for invalid class name or invalid reflection class

1524.1.1.14. getContents

getContents()

Return the full contents of file

Return type:string

1524.1.1.15. toString

toString()

1524.1.1.16. __toString

__toString()

Serialize to string

Required by the Reflector interface

Return type:string

1524.1.1.17. reflect

reflect()

This method does the work of “reflecting” the file

Uses ZendCodeScannerFileScanner to gather file information

Return type:void

1524.1.1.18. checkFileDocBlock

checkFileDocBlock()

Validate / check a file level DocBlock

Parameters:array – Array of tokenizer tokens
Return type:void