StaticReflectionParser
class StaticReflectionParser (View source)
Parses a file for namespaces/use/class declarations.
Properties
| protected string | $className | The fully qualified class name. |
|
| protected string | $shortClassName | The short class name. |
|
| protected bool | $classAnnotationOptimize | Whether the caller only wants class annotations. |
|
| protected ClassFinderInterface | $finder | A ClassFinder object which finds the class. |
|
| protected bool | $parsed | Whether the parser has run. |
|
| protected string | $namespace | The namespace of the class. |
|
| protected string[] | $useStatements | The use statements of the class. |
|
| protected array | $docComment | The docComment of the class. |
|
| protected string | $parentClassName | The name of the class this class extends, if any. |
|
| protected StaticReflectionParser | $parentStaticReflectionParser | The parent PSR-0 Parser. |
Methods
Parses a class residing in a PSR-0 hierarchy.
No description
No description
No description
No description
Gets the ReflectionClass equivalent for this class.
Gets the use statements from this file.
Gets the doc comment.
Gets the PSR-0 parser for the declaring class.
Details
__construct(string $className, ClassFinderInterface $finder, bool $classAnnotationOptimize = false)
Parses a class residing in a PSR-0 hierarchy.
protected void
parse()
No description
protected StaticReflectionParser
getParentStaticReflectionParser()
No description
string
getClassName()
No description
string
getNamespaceName()
No description
ReflectionClass
getReflectionClass()
Gets the ReflectionClass equivalent for this class.
string[]
getUseStatements()
Gets the use statements from this file.
string
getDocComment(string $type = 'class', string $name = '')
Gets the doc comment.
StaticReflectionParser
getStaticReflectionParserForDeclaringClass(string $type, string $name)
Gets the PSR-0 parser for the declaring class.