protected function _appendHttpStatusAndRate($reply, $httpstatus, $rate)
  {
    switch ($this->_return_format) {
      case CODEBIRD_RETURNFORMAT_ARRAY:
        $reply['httpstatus'] = $httpstatus;
        $reply['rate']       = $rate;
        break;
      case CODEBIRD_RETURNFORMAT_OBJECT:
        $reply->httpstatus = $httpstatus;
        $reply->rate       = $rate;
        break;
      case CODEBIRD_RETURNFORMAT_JSON:
        $reply             = $this->_json_decode($reply);
        $reply->httpstatus = $httpstatus;
        $reply->rate       = $rate;
        $reply             = json_encode($reply);
        break;
    }
    return $reply;
  }
protected function _appendHttpStatusAndRate($reply, $httpstatus, $rate)
  {
    switch ($this->_return_format) {
      case CODEBIRD_RETURNFORMAT_ARRAY:
        $reply['httpstatus'] = $httpstatus;
        $reply['rate']       = $rate;
        break;
      case CODEBIRD_RETURNFORMAT_OBJECT:
        $reply->httpstatus = $httpstatus;
        $reply->rate       = $rate;
        break;
      case CODEBIRD_RETURNFORMAT_JSON:
        $reply             = $this->_json_decode($reply);
        $reply->httpstatus = $httpstatus;
        $reply->rate       = $rate;
        $reply             = json_encode($reply);
        break;
    }
    return $reply;
  }
protected function _appendHttpStatusAndRate ( $ reply , $ httpstatus , $ rate ) { switch ( $ this -> _return_format ) { case CODEBIRD_RETURNFORMAT_ARRAY : $ reply [ 'httpstatus' ] = $ httpstatus ; $ reply [ 'rate' ] = $ rate ; break ; case CODEBIRD_RETURNFORMAT_OBJECT : $ reply -> httpstatus = $ httpstatus ; $ reply -> rate = $ rate ; break ; case CODEBIRD_RETURNFORMAT_JSON : $ reply = $ this -> _json_decode ( $ reply ) ; $ reply -> httpstatus = $ httpstatus ; $ reply -> rate = $ rate ; $ reply = json_encode ( $ reply ) ; break ; } return $ reply ; }
Appends HTTP status and rate limiting info to the reply

@param array|object|string $reply      The reply to append to
@param string              $httpstatus The HTTP status code to append
@param mixed               $rate       The rate limiting info to append
Appends HTTP status and rate limiting info to the reply