1 | <?php |
||
22 | abstract class WuBookApi |
||
23 | { |
||
24 | |||
25 | /** |
||
26 | * @var array |
||
27 | */ |
||
28 | protected $config; |
||
29 | |||
30 | /** |
||
31 | * @var Illuminate\Cache\Repository |
||
32 | */ |
||
33 | protected $cache; |
||
34 | |||
35 | /** |
||
36 | * @var fXmlRpc\Client |
||
37 | */ |
||
38 | protected $client; |
||
39 | |||
40 | /** |
||
41 | * @var IlGala\LaravelWubook\Api\WuBookAuth |
||
42 | */ |
||
43 | protected $auth; |
||
44 | |||
45 | /** |
||
46 | * Creates a new WuBookAuth instance. |
||
47 | * |
||
48 | * @param array $config |
||
49 | * @param Illuminate\Cache\Repository $cache |
||
50 | * @param fXmlRpc\Client $client |
||
51 | */ |
||
52 | public function __construct($config, Repository $cache, Client $client) |
||
59 | |||
60 | /** |
||
61 | * Prepends token and lcode or custom parameters |
||
62 | * |
||
63 | * @param mixed $params |
||
64 | */ |
||
65 | protected function setup_client($params) |
||
77 | |||
78 | /** |
||
79 | * Validate and, if necessary, retrieves a token or the cached token |
||
80 | * |
||
81 | * @param string $token |
||
82 | * @return string |
||
83 | * @throws WuBookException |
||
84 | */ |
||
85 | protected function get_token($token) |
||
105 | |||
106 | /** |
||
107 | * Calls a wired API function. |
||
108 | * |
||
109 | * @param string $token |
||
110 | * @param string $method |
||
111 | * @param array $data |
||
112 | * @return array |
||
113 | * @throws WuBookException |
||
114 | */ |
||
115 | protected function call_method($token, $method, $data = []) |
||
149 | } |
||
150 |
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..