for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Wandu\Compiler\Exception;
use RuntimeException;
class UnknownTokenFromLexException extends RuntimeException
{
/** @var string */
protected $token;
public function __construct($token)
$this->token = $token;
$this->message = "unknown token \"{$token}\".";
}
/**
* @return string
*/
public function getToken()
return $this->token;