1 | <?php |
||
16 | abstract class AbstractHttpClient |
||
17 | { |
||
18 | /** |
||
19 | * @var int |
||
20 | */ |
||
21 | protected $timeout; |
||
22 | |||
23 | /** |
||
24 | * @var int |
||
25 | */ |
||
26 | protected $baseUrl = Paybox::API_URL_TEST; |
||
27 | |||
28 | /** |
||
29 | * @var string[] |
||
30 | */ |
||
31 | private $baseParameters; |
||
32 | |||
33 | /** |
||
34 | * @var int |
||
35 | */ |
||
36 | private $defaultDevise; |
||
37 | |||
38 | /** |
||
39 | * @var int |
||
40 | */ |
||
41 | private $questionNumber; |
||
42 | |||
43 | /** |
||
44 | * Constructor. |
||
45 | */ |
||
46 | final public function __construct() |
||
50 | |||
51 | /** |
||
52 | * @param array $options |
||
53 | */ |
||
54 | final public function setOptions($options) |
||
67 | |||
68 | /** |
||
69 | * Calls PayBox Direct platform with given operation type and parameters. |
||
70 | * |
||
71 | * @param string $type Request type |
||
72 | * @param string[] $parameters Request parameters |
||
73 | * @param bool $directPlus |
||
74 | * |
||
75 | * @return DirectResponse|DirectPlusResponse The response content |
||
76 | * |
||
77 | * @throws PayboxException |
||
78 | */ |
||
79 | public function call($type, array $parameters, $directPlus = false) |
||
112 | |||
113 | /** |
||
114 | * Init and setup http client with PayboxDirectPlus SDK options. |
||
115 | */ |
||
116 | abstract public function init(); |
||
117 | |||
118 | /** |
||
119 | * Sends a request to the server, receive a response and returns it as a string. |
||
120 | * |
||
121 | * @param string[] $parameters Request parameters |
||
122 | * |
||
123 | * @return string The response content |
||
124 | */ |
||
125 | abstract protected function request($parameters); |
||
126 | } |
||
127 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..