Esempio n. 1
0
 /**
  * @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);
 }
Esempio n. 2
0
 /**
  * @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);
 }
Esempio n. 3
0
 /**
  * @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);
 }