Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Zend_Reflection_Class[] $_classes = 'array'
string $_contents = 'null'
string $_docComment = 'null'
int $_endLine = 'null'
string $_filepath = 'null'
Zend_Reflection_Function[] $_functions = 'array'
string[] $_requiredFiles = 'array'
int $_startLine = '1'
__construct(
string $file
)
:
void
Constructor
__toString(
)
:
string
Serialize to string
Required by the Reflector interface
_checkFileDocBlock(
array $tokens
)
:
void
Validate / check a file level docblock
_reflect(
)
:
void
This method does the work of "reflecting" the file
Uses PHP's tokenizer to perform file reflection.
export(
)
:
null
Export
Required by the Reflector interface.
findRealpathInIncludePath(
string $fileName
)
:
string
Find realpath of file based on include_path
getClass(
null|string $name
=
null, string $reflectionClass
=
Zend_Reflection_Class
)
:
Zend_Reflection_Class
Retrieve the reflection class of a given class found in this file
getClasses(
string $reflectionClass
=
Zend_Reflection_Class
)
:
array
Return the reflection classes of the classes found inside this file
getContents(
)
:
string
Return the full contents of file
getDocComment(
)
:
string
Return the doc comment
getDocblock(
string $reflectionClass
=
Zend_Reflection_Docblock
)
:
Zend_Reflection_Docblock
Return the docblock
getEndLine(
)
:
int
Get the end line / number of lines
getFileName(
)
:
string
Return the file name of the reflected file
getFunctions(
string $reflectionClass
=
Zend_Reflection_Function
)
:
array
Return the reflection functions of the functions found inside this file
getStartLine(
)
:
int
Get the start line - Always 1, staying consistent with the Reflection API