1 | <?php |
||
23 | abstract class AbstractHttpClient |
||
24 | { |
||
25 | /** |
||
26 | * @var int |
||
27 | */ |
||
28 | protected $timeout; |
||
29 | |||
30 | /** |
||
31 | * @var int |
||
32 | */ |
||
33 | protected $baseUrl = Paybox::API_URL_TEST; |
||
34 | |||
35 | /** |
||
36 | * @var string[] |
||
37 | */ |
||
38 | private $baseParameters; |
||
39 | |||
40 | /** |
||
41 | * @var int |
||
42 | */ |
||
43 | private $defaultDevise; |
||
44 | |||
45 | /** |
||
46 | * @var int|null |
||
47 | */ |
||
48 | private $defaultActivity = null; |
||
49 | |||
50 | /** |
||
51 | * @var int |
||
52 | */ |
||
53 | private $questionNumber; |
||
54 | |||
55 | /** |
||
56 | * Constructor. |
||
57 | */ |
||
58 | final public function __construct() |
||
62 | |||
63 | /** |
||
64 | * @param array $options |
||
65 | */ |
||
66 | final public function setOptions($options) |
||
82 | |||
83 | /** |
||
84 | * Calls PayBox Direct platform with given operation type and parameters. |
||
85 | * |
||
86 | * @param int $type Request type |
||
87 | * @param string[] $parameters Request parameters |
||
88 | * @param string $responseClass |
||
89 | * |
||
90 | * @return ResponseInterface The response content |
||
91 | * |
||
92 | * @throws PayboxException |
||
93 | */ |
||
94 | final public function call($type, array $parameters, $responseClass) |
||
133 | |||
134 | /** |
||
135 | * Init and setup http client with PayboxDirectPlus SDK options. |
||
136 | */ |
||
137 | abstract public function init(); |
||
138 | |||
139 | /** |
||
140 | * Sends a request to the server, receive a response and returns it as a string. |
||
141 | * |
||
142 | * @param string[] $parameters Request parameters |
||
143 | * |
||
144 | * @return string The response content |
||
145 | */ |
||
146 | abstract protected function request($parameters); |
||
147 | } |
||
148 |
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..