1 | <?php |
||
13 | class SimpleCacheTokenPersistence implements TokenPersistenceInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var CacheInterface |
||
17 | */ |
||
18 | private $cache; |
||
19 | |||
20 | /** |
||
21 | * @var int |
||
22 | */ |
||
23 | private $ttl; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | private $cacheKey; |
||
29 | |||
30 | public function __construct(CacheInterface $cache, $ttl = 1800, $cacheKey = 'eljam.jwt.token') |
||
36 | |||
37 | /** |
||
38 | * @inheritDoc |
||
39 | */ |
||
40 | public function saveToken(JwtToken $token) |
||
50 | |||
51 | /** |
||
52 | * @inheritDoc |
||
53 | */ |
||
54 | public function restoreToken() |
||
58 | |||
59 | /** |
||
60 | * @inheritDoc |
||
61 | */ |
||
62 | public function deleteToken() |
||
67 | |||
68 | /** |
||
69 | * @inheritDoc |
||
70 | */ |
||
71 | public function hasToken() |
||
75 | } |
||
76 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.