for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Wearesho\Yii\Exceptions;
class InvalidTokenException extends TokenException
{
protected string $token;
/**
* InvalidTokenException constructor.
* @param string $token
* @param int $code
* @param \Throwable|null $previous
*/
public function __construct(string $token, $code = 0, \Throwable $previous = null)
$message = "Token {$token} is invalid.";
parent::__construct($message, $code, $previous);
$this->token = $token;
}
* @return string
public function getToken(): string
return $this->token;