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