@@ -88,68 +88,81 @@ public function query();
8888 * @param $requestUri
8989 * @param array $bindings
9090 *
91- * @return IODataRequest
91+ * @return IODataResponse
9292 */
9393 public function get ($ requestUri , $ bindings = []);
9494
9595 /**
96- * Run a GET HTTP request against the service.
96+ * Run a POST request against the service.
9797 *
98- * @param $requestUri
99- * @param array $bindings
98+ * @param string $requestUri
99+ * @param mixed $postData
100100 *
101- * @return IODataRequest
101+ * @return IODataResponse
102102 */
103- public function getNextPage ($ requestUri , $ bindings = [] );
103+ public function post ($ requestUri , $ postData );
104104
105105 /**
106- * Run a GET HTTP request against the service and return a generator
106+ * Run a PATCH request against the service.
107107 *
108- * @param $requestUri
109- * @param array $bindings
108+ * @param string $requestUri
109+ * @param mixed $body
110110 *
111- * @return IODataRequest
111+ * @return IODataResponse
112112 */
113- public function cursor ($ requestUri , $ bindings = [] );
113+ public function patch ($ requestUri , $ body );
114114
115115 /**
116- * Run a POST request against the service.
116+ * Run a DELETE request against the service.
117117 *
118118 * @param string $requestUri
119- * @param mixed $postData
120119 *
121- * @return IODataRequest
120+ * @return IODataResponse
122121 */
123- public function post ($ requestUri, $ postData );
122+ public function delete ($ requestUri );
124123
125124 /**
126- * Run a PUT request against the service.
125+ * Return an ODataRequest
127126 *
127+ * @param string $method
128128 * @param string $requestUri
129129 * @param mixed $body
130130 *
131- * @return IODataRequest
131+ * @return IODataResponse
132+ *
133+ * @throws ODataException
132134 */
133- public function put ( $ requestUri , $ body );
135+ public function request ( $ method , $ requestUri , $ body = null );
134136
135137 /**
136- * Run a PATCH request against the service.
138+ * Run a GET HTTP request against the service.
137139 *
138- * @param string $requestUri
139- * @param mixed $body
140+ * @param $requestUri
141+ * @param array $bindings
140142 *
141- * @return IODataRequest
143+ * @return IODataResponse
142144 */
143- public function patch ($ requestUri , $ body );
145+ public function getNextPage ($ requestUri , $ bindings = [] );
144146
145147 /**
146- * Run a DELETE request against the service.
148+ * Run a GET HTTP request against the service and return a generator
149+ *
150+ * @param $requestUri
151+ * @param array $bindings
152+ *
153+ * @return IODataResponse
154+ */
155+ public function cursor ($ requestUri , $ bindings = []);
156+
157+ /**
158+ * Run a PUT request against the service.
147159 *
148160 * @param string $requestUri
161+ * @param mixed $body
149162 *
150- * @return IODataRequest
163+ * @return IODataResponse
151164 */
152- public function delete ($ requestUri );
165+ public function put ($ requestUri, $ body );
153166
154167 /**
155168 * Get the query grammar used by the connection.
0 commit comments