public function getSignature(array $query = array())
    {
        switch ($this->signature) {
            case self::HMAC_SHA1:
                return $this->getHmacSha1Signature($query);
            case self::RSA_SHA1:
            case self::PLAIN_TEXT:
            default:
                return $this->getHmacPlainTextSignature();
        }
    }
public function getSignature(array $query = array())
    {
        switch ($this->signature) {
            case self::HMAC_SHA1:
                return $this->getHmacSha1Signature($query);
            case self::RSA_SHA1:
            case self::PLAIN_TEXT:
            default:
                return $this->getHmacPlainTextSignature();
        }
    }
public function getSignature ( array $ query = array ( ) ) { switch ( $ this -> signature ) { case self :: HMAC_SHA1 : return $ this -> getHmacSha1Signature ( $ query ) ; case self :: RSA_SHA1 : case self :: PLAIN_TEXT : default : return $ this -> getHmacPlainTextSignature ( ) ; } }
Returns the signature based on what signature method was set

@param array $query Extra URL parameters

@return string
Returns the signature based on what signature method was set