コード例 #1
0
ファイル: MethodReflection.php プロジェクト: ncud/sagalaya
 /**
  * @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;
 }
コード例 #2
0
 /**
  * @param  string $className
  * @return bool|null|NameInformation
  */
 public function getClassNameInformation($className)
 {
     return $this->fileScanner->getClassNameInformation($className);
 }