public function getNamespaceDeclaration() { $ns = $this->reflection->getNamespace(); if ($ns) { return 'namespace ' . $this->reflection->getNamespace() . ';'; } return ''; }
public function __construct(Variable $variableReflection, Reflector $classReflection, $filePath, $allMetadataTagClasses = array()) { $this->reflection = $variableReflection; $this->filePath = $filePath; $this->allMetadataTagClasses = $allMetadataTagClasses; $this->classReflection = $classReflection; $this->className = $classReflection->getClassName(); foreach ($this->reflection->getMetadataTags() as $tag) { $this->metadataTags[] = $this->createTagProcessor($tag); } }