public function getClaim($key) { if ($this->hasClaim($key)) { return $this->payload[$key]; } throw new \InvalidArgumentException(sprintf('The payload does not contain claim "%s".', $key)); }