/** * @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(); }