Inheritance: extends ReflectionElement, implements ApiGen\Contracts\Parser\Reflection\ClassReflectionInterface
Ejemplo n.º 1
0
 /**
  * @param string $annotation
  * @return int
  */
 private function getStartLine($annotation)
 {
     $doc = $this->reflectionClass->getDocComment();
     $tmp = $annotation;
     if ($delimiter = strpos($annotation, "\n")) {
         $tmp = substr($annotation, 0, $delimiter);
     }
     return $this->reflectionClass->getStartLine() + substr_count(substr($doc, 0, strpos($doc, $tmp)), "\n");
 }
 /**
  * {@inheritdoc}
  */
 public function getFileName()
 {
     return $this->declaringClass->getFileName();
 }