public function __construct(Parsing\Encoder $encoder, ClaimFactory $claimFactory) { $this->encoder = $encoder; $this->claimFactory = $claimFactory; $this->headers = ['typ' => 'JWT', 'alg' => 'none']; $this->claims = []; }