Zend Framework
3.0
|
Public Member Functions | |
__construct ($filename, $includeIfNotAlreadyIncluded=false) | |
getFileName () | |
Return the file name of the reflected file. | |
getStartLine () | |
Get the start line - Always 1, staying consistent with the Reflection API. | |
getEndLine () | |
Get the end line / number of lines. | |
getDocComment () | |
getDocBlock () | |
getNamespaces () | |
getNamespace () | |
getUses () | |
getClasses () | |
Return the reflection classes of the classes found inside this file. | |
getFunctions () | |
Return the reflection functions of the functions found inside this file. | |
getClass ($name=null) | |
Retrieve the reflection class of a given class found in this file. | |
getContents () | |
Return the full contents of file. | |
toString () | |
__toString () | |
Serialize to string. | |
Static Public Member Functions | |
static | export () |
Required by the Reflector interface. | |
Protected Member Functions | |
reflect () | |
This method does the work of "reflecting" the file. | |
checkFileDocBlock ($tokens) | |
Validate / check a file level DocBlock. | |
Protected Attributes | |
$filePath = null | |
$docComment = null | |
$startLine = 1 | |
$endLine = null | |
$namespaces = [] | |
$uses = [] | |
$requiredFiles = [] | |
$classes = [] | |
$functions = [] | |
$contents = null | |
__construct | ( | $filename, | |
$includeIfNotAlreadyIncluded = false |
|||
) |
string | $filename | |
bool | $includeIfNotAlreadyIncluded |
Exception\InvalidArgumentException | If file does not exists |
Exception\RuntimeException | If file exists but is not included or required |
__toString | ( | ) |
Serialize to string.
Required by the Reflector interface
|
protected |
Validate / check a file level DocBlock.
array | $tokens | Array of tokenizer tokens |
|
static |
getClass | ( | $name = null | ) |
Retrieve the reflection class of a given class found in this file.
null | string | $name |
Exception\InvalidArgumentException | for invalid class name or invalid reflection class |
getClasses | ( | ) |
Return the reflection classes of the classes found inside this file.
getContents | ( | ) |
Return the full contents of file.
getDocBlock | ( | ) |
getDocComment | ( | ) |
getEndLine | ( | ) |
Get the end line / number of lines.
getFileName | ( | ) |
Return the file name of the reflected file.
getFunctions | ( | ) |
Return the reflection functions of the functions found inside this file.
getNamespace | ( | ) |
getNamespaces | ( | ) |
getStartLine | ( | ) |
Get the start line - Always 1, staying consistent with the Reflection API.
getUses | ( | ) |
|
protected |
This method does the work of "reflecting" the file.
Uses Zend to gather file information
toString | ( | ) |
Implements ReflectionInterface.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |