| Total Complexity | 2 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | abstract class AbstractHttpAdapter implements AdapterInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $gatewayUrl; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param string $gatewayUrl |
||
| 21 | */ |
||
| 22 | public function __construct($gatewayUrl) |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param string $data |
||
| 29 | * |
||
| 30 | * @return string |
||
| 31 | */ |
||
| 32 | public function sendRequest($data) |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param string $data |
||
| 41 | * |
||
| 42 | * @return object |
||
| 43 | */ |
||
| 44 | abstract protected function buildRequest($data); |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @param object $request |
||
| 48 | * |
||
| 49 | * @throws \SprykerEco\Zed\Ratepay\Business\Exception\ApiHttpRequestException |
||
| 50 | * |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | abstract protected function send($request); |
||
| 54 | } |
||
| 55 |