for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Zenstruck\JWT\Exception;
/**
* @author Kevin Bond <[email protected]>
*/
final class MalformedToken extends \InvalidArgumentException implements Exception
{
private $token;
* @param mixed $token
* @param \Exception|null $previous
public function __construct($token, \Exception $previous = null)
$this->token = $token;
parent::__construct('Malformed token.', 0, $previous);
}
* @return mixed
public function token()
return $this->token;