ApiGen\Parser\Reflection\Extractors\AnnotationPropertyExtractor::getStartLine PHP Method

getStartLine() private method

private getStartLine ( string $annotation ) : integer
$annotation string
return integer
    private function getStartLine($annotation)
    {
        $doc = $this->classReflection->getDocComment();
        $tmp = $annotation;
        if ($delimiter = strpos($annotation, "\n")) {
            $tmp = substr($annotation, 0, $delimiter);
        }
        return $this->classReflection->getStartLine() + substr_count(substr($doc, 0, strpos($doc, $tmp)), "\n");
    }