PHP Class PhpCss\Exception\Token
A parse error occurs if certain tokens are expected for further parsing, but
none of them are found on the token stream
Show file
Open project: ThomasWeinert/PhpCss
Class Usage Examples
Protected Properties
Property |
Type |
Description |
|
$_encounteredToken |
PhpCss\Scanner\Token |
This is the token object which was not expected to be found at the given
position. |
|
Public Methods
Method |
Description |
|
__construct ( Token $token, $message ) |
|
|
getToken ( ) : Token |
Return the token that triggered the exception |
|
Method Details
__construct()
public method
public __construct ( Token $token, $message ) |
$token |
PhpCss\Scanner\Token |
|
Return the token that triggered the exception
public getToken ( ) : Token |
return |
PhpCss\Scanner\Token |
|
Property Details
$_encounteredToken protected property
This is the token object which was not expected to be found at the given
position.
protected Token,PhpCss\Scanner $_encounteredToken |
return |
PhpCss\Scanner\Token |
|