Esempio n. 1
0
 public function getNamespaceDeclaration()
 {
     $ns = $this->reflection->getNamespace();
     if ($ns) {
         return 'namespace ' . $this->reflection->getNamespace() . ';';
     }
     return '';
 }
Esempio n. 2
0
 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);
     }
 }