Methods
__construct()
__construct(string $filename, bool $includeIfNotAlreadyIncluded)
Parameters
$filename
string
$includeIfNotAlreadyIncluded
bool
Exceptions
Serialize to string
__toString() : string
Required by the Reflector interface
todo |
What should this serialization look like? |
Returns
string
Required by the Reflector interface.
export() : null
todo |
What should this do? |
Returns
null
Return the full contents of file
getContents() : string
Get the end line / number of lines
getEndLine() : int
Return the file name of the reflected file
getFileName() : string
getNamespace()
getNamespace() : string
getNamespaces()
getNamespaces() : string[]
Get the start line - Always 1, staying consistent with the Reflection API
getStartLine() : int
getUses()
getUses() : array
toString()
toString() : string
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
$contents
$contents : string
$filePath
$filePath : string
$namespaces
$namespaces : string[]
$requiredFiles
$requiredFiles : string[]
$startLine
$startLine : int