Jose\Object\JWT::getClaim PHP Method

getClaim() public method

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