for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TheHorhe\ApiClient;
use GuzzleHttp\Psr7\Response;
use Psr\Http\Message\ResponseInterface;
abstract class AbstractApiMethod implements MethodInterface
{
public function getHeaders()
return [];
}
public function getQueryParameters()
public function getHttpMethod()
return 'GET';
public function getScheme()
return 'https';
abstract public function getHost();
abstract public function getMethodUrl();
public function processResponse(ResponseInterface $response)
return $response;
public function handleException(\Throwable $exception)
throw $exception;
public function getBody()
return null;
public function getOptions()
return [
'timeout' => 3
];