Constructor function.
Parameters
$message
stringrequired- Brief message explaining what is unsupported, the reason this exception was raised.
$token_name
stringrequired- Normalized name of matched token when this exception was raised.
$token_at
intrequired- Number of bytes into source HTML document where matched token starts.
$token
stringrequired- Full raw text of matched token when this exception was raised.
$stack_of_open_elements
string[]required- Stack of open elements when this exception was raised.
$active_formatting_elements
string[]required- List of active formatting elements when this exception was raised.
Source
public function __construct( string $message, string $token_name, int $token_at, string $token, array $stack_of_open_elements, array $active_formatting_elements ) {
parent::__construct( $message );
$this->token_name = $token_name;
$this->token_at = $token_at;
$this->token = $token;
$this->stack_of_open_elements = $stack_of_open_elements;
$this->active_formatting_elements = $active_formatting_elements;
}
Changelog
Version | Description |
---|---|
6.7.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.