getEndColumn() public method

Gets the end column (1-based) into the line where the error ended.
public getEndColumn ( string $code ) : integer
$code string Source code of the file
return integer
Ejemplo n.º 1
0
 private function formatErrorMessage(Error $e, $code)
 {
     if ($e->hasColumnInfo()) {
         return $e->getRawMessage() . ' from ' . $e->getStartLine() . ':' . $e->getStartColumn($code) . ' to ' . $e->getEndLine() . ':' . $e->getEndColumn($code);
     } else {
         return $e->getMessage();
     }
 }