1 | <?php namespace Ntholenaar\MultiSafepayClient\Request; |
||
9 | class Request implements RequestInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var MessageFactory |
||
13 | */ |
||
14 | protected $messageFactory; |
||
15 | |||
16 | /** |
||
17 | * @var UriFactory |
||
18 | */ |
||
19 | protected $uriFactory; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $baseUrl = ''; |
||
25 | |||
26 | /** |
||
27 | * @param MessageFactory|null $messageFactory |
||
28 | * @param UriFactory|null $uriFactory |
||
29 | */ |
||
30 | public function __construct(MessageFactory $messageFactory = null, UriFactory $uriFactory = null) |
||
45 | |||
46 | /** |
||
47 | * Get the MessageFactory. |
||
48 | * |
||
49 | * @return MessageFactory |
||
50 | */ |
||
51 | protected function getMessageFactory() |
||
55 | |||
56 | /** |
||
57 | * Set the MessageFactory. |
||
58 | * |
||
59 | * @param MessageFactory $messageFactory |
||
60 | * @return $this |
||
61 | */ |
||
62 | protected function setMessageFactory(MessageFactory $messageFactory) |
||
68 | |||
69 | /** |
||
70 | * Get the UriFactory. |
||
71 | * |
||
72 | * @return UriFactory |
||
73 | */ |
||
74 | protected function getUriFactory() |
||
78 | |||
79 | /** |
||
80 | * Set the UriFactory. |
||
81 | * |
||
82 | * @param UriFactory $uriFactory |
||
83 | * @return $this |
||
84 | */ |
||
85 | protected function setUriFactory(UriFactory $uriFactory) |
||
91 | |||
92 | /** |
||
93 | * Get the base url. |
||
94 | * |
||
95 | * @return string |
||
96 | */ |
||
97 | protected function getBaseUrl() |
||
101 | |||
102 | /** |
||
103 | * Set the base url. |
||
104 | * |
||
105 | * @param $baseUrl |
||
106 | * @return $this |
||
107 | */ |
||
108 | protected function setBaseUrl($baseUrl) |
||
114 | |||
115 | /** |
||
116 | * |
||
117 | * @param UriInterface $uri |
||
118 | * @param array $query |
||
119 | * @return \Psr\Http\Message\RequestInterface |
||
120 | */ |
||
121 | protected function get(UriInterface $uri, array $query = array()) |
||
127 | } |