getStartLine() public method

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