1 | <?php |
||
24 | class WuBookAuth |
||
25 | { |
||
26 | |||
27 | /** |
||
28 | * @var array |
||
29 | */ |
||
30 | private $config; |
||
31 | |||
32 | /** |
||
33 | * @var Illuminate\Cache\Repository |
||
34 | */ |
||
35 | private $cache; |
||
36 | |||
37 | /** |
||
38 | * @var fXmlRpc\Client |
||
39 | */ |
||
40 | private $client; |
||
41 | |||
42 | /** |
||
43 | * Create a new WuBookAuth Instance. |
||
44 | * |
||
45 | * @param array $config |
||
46 | * @param \Illuminate\Cache\Repository $cache |
||
47 | * @param Client $client |
||
48 | */ |
||
49 | public function __construct(array $config, Illuminate\Cache\Repository $cache, Client $client) |
||
55 | |||
56 | /** |
||
57 | * Acquire token. If cache_token option is set to true, the package will automatically save it into application cache |
||
58 | * |
||
59 | * http://tdocs.wubook.net/wired/auth.html#acquiring-and-releasing-a-token |
||
60 | * |
||
61 | * |
||
62 | * @return string token |
||
63 | */ |
||
64 | public function acquire_token() |
||
100 | |||
101 | /** |
||
102 | * Token release. |
||
103 | * |
||
104 | * http://tdocs.wubook.net/wired/auth.html#acquiring-and-releasing-a-token |
||
105 | * |
||
106 | * @param string $token |
||
107 | */ |
||
108 | public function release_token($token) |
||
134 | |||
135 | /** |
||
136 | * The is_token_valid() function returns two information. |
||
137 | * If (and only if) the ReturnCode is zero, it means that the token is valid. |
||
138 | * In that case, the return value of the function is an integer and represents the number of times that this token has been used. |
||
139 | * |
||
140 | * The request_new param will not be considered if token is valid. |
||
141 | * |
||
142 | * http://tdocs.wubook.net/wired/auth.html#other-token-tools |
||
143 | * |
||
144 | * @param string $token |
||
145 | * @param boolean $request_new |
||
146 | * @return int|string |
||
147 | * @throws IlGala\WuBook\Exceptions\WuBookException |
||
148 | */ |
||
149 | public function is_token_valid($token, $request_new = false) |
||
171 | |||
172 | /** |
||
173 | * The provider_info() function is used to return the information WuBook holds about you as Wired Provider. |
||
174 | * In particular, you can check what email we have registered and associated with your Provider Key. |
||
175 | * The return value of this function is a Complex Structure. |
||
176 | * |
||
177 | * http://tdocs.wubook.net/wired/auth.html#other-token-tools |
||
178 | * |
||
179 | * @param string $token |
||
180 | * @return mixed |
||
181 | * @throws IlGala\WuBook\Exceptions\WuBookException |
||
182 | */ |
||
183 | public function provider_info($token = null) |
||
213 | } |
||
214 |
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..