1 | <?php |
||
11 | class Memcached implements TokenStorageInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $key; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $stateKey; |
||
22 | |||
23 | /** |
||
24 | * @var object|\Memcached |
||
25 | */ |
||
26 | protected $memcached; |
||
27 | |||
28 | /** |
||
29 | * @var object|TokenInterface |
||
30 | */ |
||
31 | protected $cachedTokens; |
||
32 | |||
33 | /** |
||
34 | * @var object |
||
35 | */ |
||
36 | protected $cachedStates; |
||
37 | |||
38 | /** |
||
39 | * @param \Memcached $memcache An instantiated and connected Memcached client |
||
40 | * @param string $key The key to store the token under in Memcached |
||
41 | * @param string $stateKey The key to store the state under in Memcached. |
||
42 | */ |
||
43 | public function __construct(\Memcached $memcache, $key, $stateKey) |
||
51 | |||
52 | /** |
||
53 | * {@inheritDoc} |
||
54 | */ |
||
55 | public function retrieveAccessToken($service) |
||
70 | |||
71 | /** |
||
72 | * {@inheritDoc} |
||
73 | */ |
||
74 | public function storeAccessToken($service, TokenInterface $token) |
||
93 | |||
94 | /** |
||
95 | * {@inheritDoc} |
||
96 | */ |
||
97 | public function hasAccessToken($service) |
||
109 | |||
110 | /** |
||
111 | * {@inheritDoc} |
||
112 | */ |
||
113 | public function clearToken($service) |
||
129 | |||
130 | /** |
||
131 | * {@inheritDoc} |
||
132 | */ |
||
133 | public function clearAllTokens() |
||
144 | |||
145 | /** |
||
146 | * {@inheritDoc} |
||
147 | */ |
||
148 | public function retrieveAuthorizationState($service) |
||
163 | |||
164 | /** |
||
165 | * {@inheritDoc} |
||
166 | */ |
||
167 | public function storeAuthorizationState($service, $state) |
||
184 | |||
185 | /** |
||
186 | * {@inheritDoc} |
||
187 | */ |
||
188 | public function hasAuthorizationState($service) |
||
200 | |||
201 | /** |
||
202 | * {@inheritDoc} |
||
203 | */ |
||
204 | public function clearAuthorizationState($service) |
||
220 | |||
221 | /** |
||
222 | * {@inheritDoc} |
||
223 | */ |
||
224 | public function clearAllAuthorizationStates() |
||
235 | |||
236 | /** |
||
237 | * @return \Memcached $memcached |
||
238 | */ |
||
239 | public function getMemcached() |
||
243 | |||
244 | /** |
||
245 | * @return string $key |
||
246 | */ |
||
247 | public function getKey() |
||
251 | } |
||
252 |
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..