1 <?php
2 /**
3 * @author Krzysztof Gzocha <krzysztof.gzocha@xsolve.pl>
4 */
5 namespace Team3\PayU\Communication;
6
7 use Buzz\Exception\ClientException;
8 use Buzz\Message\Response;
9 use Team3\PayU\Communication\Request\PayURequestInterface;
10 use Team3\PayU\Configuration\ConfigurationInterface;
11
12 /**
13 * Will build proper cURL request from {@link PayURequestInterface}
14 * and send it via {@link SenderInterface}
15 *
16 * Interface ClientInterface
17 * @package Team3\PayU\Communication
18 */
19 interface ClientInterface
20 {
21 /**
22 * @param ConfigurationInterface $configuration
23 * @param PayURequestInterface $request
24 *
25 * @return Response
26 * @throws ClientException
27 */
28 public function sendRequest(ConfigurationInterface $configuration, PayURequestInterface $request);
29 }
30