GenTux\Jwt\JwtToken::__construct PHP Method

__construct() public method

public __construct ( GenTux\Jwt\Drivers\JwtDriverInterface $jwt, string | null $secret = null, string | null $algorithm = null )
$jwt GenTux\Jwt\Drivers\JwtDriverInterface
$secret string | null
$algorithm string | null
    public function __construct(JwtDriverInterface $jwt, $secret = null, $algorithm = null)
    {
        $this->jwt = $jwt;
        $this->secret = $secret;
        $this->algorithm = $algorithm;
    }