1 <?php
2 /**
3 * @author Krzysztof Gzocha <krzysztof.gzocha@xsolve.pl>
4 */
5 namespace Team3\PayU\Communication\Request;
6
7 use Team3\PayU\Serializer\SerializableInterface;
8
9 /**
10 * It is used to represent all request that can be send to PayU.
11 * It is not any form of cURL request.
12 * It collect informations about method, path and data.
13 * Note that path is not absolute here.
14 *
15 * Interface PayURequestInterface
16 * @package Team3\PayU\Communication\Request
17 */
18 interface PayURequestInterface
19 {
20 const METHOD_POST = 'POST';
21 const METHOD_GET = 'GET';
22 const METHOD_DELETE = 'DELETE';
23
24 /**
25 * @return SerializableInterface
26 */
27 public function getDataObject();
28
29 /**
30 * @return string
31 */
32 public function getPath();
33
34 /**
35 * @return string
36 */
37 public function getMethod();
38 }
39