1 | <?php |
||
9 | class Guzzle6 extends Guzzle |
||
10 | { |
||
11 | /** |
||
12 | * @var Client |
||
13 | */ |
||
14 | private $client; |
||
15 | |||
16 | /** |
||
17 | * @var defaultConfig |
||
18 | */ |
||
19 | private $config; |
||
20 | |||
21 | /** |
||
22 | * {@InheritDoc} |
||
23 | */ |
||
24 | /** |
||
25 | * Guzzle6 accept an array of constructor parameters. |
||
26 | * |
||
27 | * Here's an example of creating a client using a base_uri and an array of |
||
28 | * default request options to apply to each request: |
||
29 | * |
||
30 | * $client = new Client([ |
||
31 | * 'base_uri' => 'http://www.foo.com/1.0/', |
||
32 | * 'timeout' => 0, |
||
33 | * 'allow_redirects' => false, |
||
34 | * 'proxy' => '192.168.16.1:10', |
||
35 | * 'auth' => ['user', 'password'] |
||
36 | * ]); |
||
37 | * @param array $config |
||
38 | */ |
||
39 | public function __construct($config) |
||
46 | |||
47 | /** |
||
48 | * @return defaultConfig |
||
49 | */ |
||
50 | public function getConfig() |
||
54 | |||
55 | /** |
||
56 | * @param defaultConfig $config |
||
57 | */ |
||
58 | public function setConfig($config) |
||
62 | |||
63 | /** |
||
64 | * @return Client |
||
65 | */ |
||
66 | public function getClient() |
||
70 | |||
71 | /** |
||
72 | * @param Client $client |
||
73 | * |
||
74 | * @return self |
||
75 | */ |
||
76 | public function setClient(Client $client) |
||
82 | |||
83 | /** |
||
84 | * @param Request $request |
||
85 | * @return mixed|\Psr\Http\Message\ResponseInterface |
||
86 | */ |
||
87 | public function send(Request $request) |
||
91 | |||
92 | /** |
||
93 | * allow to use client's magic method |
||
94 | * |
||
95 | * @param $method |
||
96 | * @param $args |
||
97 | */ |
||
98 | public function __call($method, $args) |
||
109 | } |
||
110 |
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..