/** * @return int */ public function getStartLine() { $startLine = $this->reflection->getStartLine(); if ($doc = $this->getDocComment()) { $startLine -= substr_count($doc, "\n") + 1; } return $startLine; }