PHP Class PhpParser\ErrorHandler\Collecting

This allows graceful handling of errors.
Inheritance: implements PhpParser\ErrorHandler
Show file Open project: nikic/php-parser Class Usage Examples

Public Methods

Method Description
clearErrors ( ) Reset/clear collected errors.
getErrors ( ) : Error[] Get collected errors.
handleError ( Error $error )
hasErrors ( ) : boolean Check whether there are any errors.

Method Details

clearErrors() public method

Reset/clear collected errors.
public clearErrors ( )

getErrors() public method

Get collected errors.
public getErrors ( ) : Error[]
return PhpParser\Error[]

handleError() public method

public handleError ( Error $error )
$error PhpParser\Error

hasErrors() public method

Check whether there are any errors.
public hasErrors ( ) : boolean
return boolean