Get the line number that this class starts on.
public getStartLine ( ) : integer | ||
Результат | integer |
/** * {@inheritDoc} */ public function getStartLine() { return $this->betterReflectionClass->getStartLine(); }
public function formatClass(ReflectionClass $class) { $ml = Multiline::create($class->getLocatedSource()->getSource()); return trim($ml[$class->getStartLine() - 1]); }