getStartLine() public method

Get the line number that this class starts on.
public getStartLine ( ) : integer
return integer
 /**
  * {@inheritDoc}
  */
 public function getStartLine()
 {
     return $this->betterReflectionClass->getStartLine();
 }
Example #2
0
 public function formatClass(ReflectionClass $class)
 {
     $ml = Multiline::create($class->getLocatedSource()->getSource());
     return trim($ml[$class->getStartLine() - 1]);
 }