public function getClaim($name, $default = null)
    {
        if ($this->hasClaim($name)) {
            return $this->claims[$name]->getValue();
        }

        if ($default === null) {
            throw new \OutOfBoundsException('Requested claim is not configured');
        }

        return $default;
    }
public function getClaim($name, $default = null)
    {
        if ($this->hasClaim($name)) {
            return $this->claims[$name]->getValue();
        }

        if ($default === null) {
            throw new \OutOfBoundsException('Requested claim is not configured');
        }

        return $default;
    }
public function getClaim ( $ name , $ default = null ) { if ( $ this -> hasClaim ( $ name ) ) { return $ this -> claims [ $ name ] -> getValue ( ) ; } if ( $ default === null ) { throw new \ OutOfBoundsException ( 'Requested claim is not configured' ) ; } return $ default ; }
Returns the value of a token claim

@param string $name
@param mixed $default

@return mixed

@throws \OutOfBoundsException
Returns the value of a token claim