Zend\Code\Reflection\FileReflection
Synopsis
class FileReflection
implements
ReflectionInterface
{
- // members
- protected string $filePath;
- protected string $docComment;
- protected integer $startLine;
- protected int $endLine;
- protected array $namespaces;
- protected array $uses;
- protected array $requiredFiles;
- protected array $classes;
- protected array $functions;
- protected string $contents;
- // methods
- public void __construct()
- public static null export()
- public string getFileName()
- public int getStartLine()
- public int getEndLine()
- public string getDocComment()
- public DocBlockReflection getDocBlock()
- public array getNamespaces()
- public string getNamespace()
- public array getUses()
- public array getClasses()
- public array getFunctions()
- public ClassReflection getClass()
- public string getContents()
- public void toString()
- public string __toString()
- protected void reflect()
- protected void checkFileDocBlock()
Hierarchy
Implements
Tasks
Line | Task |
---|---|
106+ | What should this do? |
118 | get file name from path |
271+ | What should this serialization look like? |
Members
protected
- $classes — array
- $contents — string
- $docComment — string
- $endLine — int
- $filePath — string
- $functions — array
- $namespaces — string
- $requiredFiles — array
- $startLine — int
- $uses — array
Methods
protected
- checkFileDocBlock() — Validate / check a file level DocBlock
- reflect() — This method does the work of "reflecting" the file
public
- __construct()
- __toString() — Serialize to string
- export() — Required by the Reflector interface.
- getClass() — Retrieve the reflection class of a given class found in this file
- 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()
- toString()