Finished Guzzle implementation, started work on Endpoints.

This commit is contained in:
Junade Ali
2017-02-01 18:07:33 +00:00
parent a49c655e77
commit 5fcb00153b
15 changed files with 912 additions and 44 deletions

View File

@@ -8,6 +8,7 @@
namespace Cloudflare\API\Adapter;
use Cloudflare\API\Auth\Auth;
use Psr\Http\Message\ResponseInterface;
/**
* Interface Adapter
@@ -34,7 +35,7 @@ interface Adapter
*
* @return mixed
*/
public function get(String $uri, array $headers);
public function get(String $uri, array $headers): ResponseInterface;
/**
* @param String $uri
@@ -43,7 +44,7 @@ interface Adapter
*
* @return mixed
*/
public function post(String $uri, array $headers, array $body);
public function post(String $uri, array $headers, array $body): ResponseInterface;
/**
* @param String $uri
@@ -52,7 +53,7 @@ interface Adapter
*
* @return mixed
*/
public function put(String $uri, array $headers, array $body);
public function put(String $uri, array $headers, array $body): ResponseInterface;
/**
* @param String $uri
@@ -61,5 +62,14 @@ interface Adapter
*
* @return mixed
*/
public function delete(String $uri, array $headers, array $body);
public function patch(String $uri, array $headers, array $body): ResponseInterface;
/**
* @param String $uri
* @param array $headers
* @param array $body
*
* @return mixed
*/
public function delete(String $uri, array $headers, array $body): ResponseInterface;
}