getStartLine() 공개 메소드

Get the line number that this class starts on.
public getStartLine ( ) : integer
리턴 integer
예제 #1
0
 /**
  * {@inheritDoc}
  */
 public function getStartLine()
 {
     return $this->betterReflectionClass->getStartLine();
 }
예제 #2
0
파일: Template.php 프로젝트: nochso/writeme
 public function formatClass(ReflectionClass $class)
 {
     $ml = Multiline::create($class->getLocatedSource()->getSource());
     return trim($ml[$class->getStartLine() - 1]);
 }