ApiGen\Parser\Reflection\Extractors\AnnotationPropertyExtractor::getStartLine PHP 메소드

getStartLine() 개인적인 메소드

private getStartLine ( string $annotation ) : integer
$annotation string
리턴 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");
    }