/** * @return AnnotationCollection */ public function getAnnotations(Annotation\AnnotationManager $annotationManager) { if (($docComment = $this->getDocComment()) == '') { return false; } if (!$this->annotations) { $fileScanner = new FileScanner($this->getFileName()); $nameInformation = $fileScanner->getClassNameInformation($this->getDeclaringClass()->getName()); $this->annotations = new AnnotationScanner($annotationManager, $docComment, $nameInformation); } return $this->annotations; }
/** * @param string $className * @return bool|null|NameInformation */ public function getClassNameInformation($className) { return $this->fileScanner->getClassNameInformation($className); }