1 <?php
 2 /**
 3  * @author Krzysztof Gzocha <krzysztof.gzocha@xsolve.pl>
 4  */
 5 namespace Team3\PayU\Communication\CurlRequestBuilder;
 6 
 7 use Buzz\Message\Request;
 8 use Team3\PayU\Communication\Request\PayURequestInterface;
 9 use Team3\PayU\Configuration\ConfigurationInterface;
10 
11 /**
12  * This library is using two types of request. First type is {@link PayuRequestInterface}
13  * and second is {@link \Buzz\Message\Request}. Responsibility of this class is to transform
14  * simple {@link PayURequestInterface} into {@link \Buzz\Message\Request} with given
15  * {@link ConfigurationInterface}
16  *
17  * Interface CurlRequestBuilderInterface
18  * @package Team3\PayU\Communication\CurlRequestBuilder
19  */
20 interface CurlRequestBuilderInterface
21 {
22     /**
23      * @param ConfigurationInterface $configuration
24      * @param PayURequestInterface   $request
25      *
26      * @return Request
27      */
28     public function build(ConfigurationInterface $configuration, PayURequestInterface $request);
29 }
30