예제 #1
0
 /**
  * Returns the line number where this object starts.
  *
  * @return int
  */
 public function getLinenumber()
 {
     return $this->node->getLine();
 }
예제 #2
0
 /**
  * Error creation factory
  *
  * @param string    $msg
  * @param Statement $stmt
  *
  * @return FatalErrorException
  */
 protected function createError($msg, $stmt)
 {
     return new FatalErrorException($msg, 0, 1, null, $stmt->getLine());
 }