/** * @param string $claim * @param mixed $actual * @param mixed $expected * @param Token $token * @param \Exception|null $previous */ public function __construct($claim, $actual, $expected, Token $token, \Exception $previous = null) { parent::__construct($token, sprintf('Token claim "%s" should be "%s", got "%s".', $claim, $expected, $actual), $previous); }
/** * @param Token $token * @param string $message * @param \Exception|null $previous */ public function __construct(Token $token, $message = 'Unacceptable token.', \Exception $previous = null) { parent::__construct($token, $message, $previous); }
/** * @param string $claim * @param Token $token * @param \Exception|null $previous */ public function __construct($claim, Token $token, \Exception $previous = null) { parent::__construct($token, sprintf('Token missing claim "%s".', $claim), $previous); }