lib/recurly/base.php
protected static function _put($uri, $client = null)
  {
    if (is_null($client)) {
      $client = new Recurly_Client();
    }
    $response = $client->request(Recurly_Client::PUT, $uri);
    $response->assertValidResponse();
    $object = null;
    if ($response->body) {
      $object = Recurly_Base::__parseResponseToNewObject($response, $uri, $client);
    }
    $response->assertSuccessResponse($object);
    return $object;
  }
protected static function _put($uri, $client = null)
  {
    if (is_null($client)) {
      $client = new Recurly_Client();
    }
    $response = $client->request(Recurly_Client::PUT, $uri);
    $response->assertValidResponse();
    $object = null;
    if ($response->body) {
      $object = Recurly_Base::__parseResponseToNewObject($response, $uri, $client);
    }
    $response->assertSuccessResponse($object);
    return $object;
  }
protected static function _put ( $ uri , $ client = null ) { if ( is_null ( $ client ) ) { $ client = new Recurly_Client ( ) ; } $ response = $ client -> request ( Recurly_Client :: PUT , $ uri ) ; $ response -> assertValidResponse ( ) ; $ object = null ; if ( $ response -> body ) { $ object = Recurly_Base :: __parseResponseToNewObject ( $ response , $ uri , $ client ) ; } $ response -> assertSuccessResponse ( $ object ) ; return $ object ; }
Put to the URI, validate the response and return the object.
@param string Resource URI, if not fully qualified, the base URL will be prepended
@param string Optional client for the request, useful for mocking the client
@return object Recurly_Resource or null
@throws Recurly_Error
Put to the URI validate the response and return the object .