public function decode($responseData)
    {
        switch ($this->format) {
            case 'json':
                return $this->jsonDecode($responseData);
            case 'xml':
                return $this->xmlDecode($responseData);
            default:
                return false;
        }
    }
public function decode($responseData)
    {
        switch ($this->format) {
            case 'json':
                return $this->jsonDecode($responseData);
            case 'xml':
                return $this->xmlDecode($responseData);
            default:
                return false;
        }
    }
public function decode ( $ responseData ) { switch ( $ this -> format ) { case 'json' : return $ this -> jsonDecode ( $ responseData ) ; case 'xml' : return $ this -> xmlDecode ( $ responseData ) ; default : return false ; } }
Returns parsed API response depending on requested format

@param mixed $responseData
@return mixed Декодированный ответ API
Returns parsed API response depending on requested format