for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* MIT License
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/
namespace SprykerEco\Zed\Ratepay\Business\Api\Adapter\Http;
use SprykerEco\Zed\Ratepay\Business\Api\Adapter\AdapterInterface;
abstract class AbstractHttpAdapter implements AdapterInterface
{
* @var string
protected $gatewayUrl;
* @param string $gatewayUrl
public function __construct($gatewayUrl)
$this->gatewayUrl = $gatewayUrl;
}
* @param string $data
*
* @return string
public function sendRequest($data)
$request = $this->buildRequest($data);
return $this->send($request);
* @return object
abstract protected function buildRequest($data);
* @param object $request
* @throws \SprykerEco\Zed\Ratepay\Business\Exception\ApiHttpRequestException
abstract protected function send($request);