1 | <?php |
||
12 | abstract class AbstractClient |
||
13 | { |
||
14 | /** |
||
15 | * @var array |
||
16 | */ |
||
17 | protected $headers = ['Content-type' => 'application/json']; |
||
18 | /** |
||
19 | * @var HttpMethodsClient |
||
20 | */ |
||
21 | protected $httpClient; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $apiRootUrl; |
||
27 | |||
28 | /** |
||
29 | * @var RepresentProcessorInterface |
||
30 | */ |
||
31 | protected $representProcessor; |
||
32 | |||
33 | /** |
||
34 | * @var ValidationResponseInterface |
||
35 | */ |
||
36 | protected $validationResponse; |
||
37 | |||
38 | /** |
||
39 | * RequestNotificationType constructor. |
||
40 | * |
||
41 | * @param string $apiRootUrl |
||
42 | * @param HttpMethodsClient $httpClient |
||
43 | * @param RepresentProcessorInterface $representProcessor |
||
44 | * @param ValidationResponseInterface $validationResponse |
||
45 | */ |
||
46 | 4 | public function __construct( |
|
60 | |||
61 | /** |
||
62 | * @return HttpMethodsClient |
||
63 | */ |
||
64 | 4 | public function getHttpClient() |
|
68 | |||
69 | /** |
||
70 | * @return string |
||
71 | */ |
||
72 | 4 | public function getApiRootUrl() |
|
76 | |||
77 | /** |
||
78 | * @return RepresentProcessorInterface |
||
79 | */ |
||
80 | 4 | public function getRepresentProcessor() |
|
84 | |||
85 | /** |
||
86 | * @return ValidationResponseInterface |
||
87 | */ |
||
88 | 3 | public function getValidationResponse() |
|
92 | |||
93 | /** |
||
94 | * @param HttpMethodsClient $httpClient |
||
95 | */ |
||
96 | 4 | protected function setHttpClient($httpClient) |
|
100 | |||
101 | /** |
||
102 | * @param string $apiRootUrl |
||
103 | */ |
||
104 | 4 | protected function setApiRootUrl($apiRootUrl) |
|
108 | |||
109 | /** |
||
110 | * @param RepresentProcessorInterface $representProcessor |
||
111 | */ |
||
112 | 4 | protected function setRepresentProcessor($representProcessor) |
|
116 | |||
117 | /** |
||
118 | * @param ValidationResponseInterface $validationResponse |
||
119 | */ |
||
120 | 4 | protected function setValidationResponse($validationResponse) |
|
124 | } |
||
125 |