1 | <?php |
||
6 | abstract class ItemDecorator implements CacheItemInterface |
||
7 | { |
||
8 | /** @var CacheItemInterface */ |
||
9 | private $decorated; |
||
10 | /** @var mixed */ |
||
11 | private $decrypted; |
||
12 | |||
13 | 480 | public function __construct(CacheItemInterface $decorated) |
|
17 | |||
18 | 231 | public function getKey() |
|
22 | |||
23 | 426 | public function getDecorated() |
|
27 | |||
28 | 324 | public function set($value) |
|
35 | |||
36 | 354 | public function isHit() |
|
41 | |||
42 | 102 | public function expiresAt($expiresAt) |
|
48 | |||
49 | 18 | public function expiresAfter($expiresAfter) |
|
55 | |||
56 | abstract protected function encrypt($data); |
||
57 | |||
58 | abstract protected function isDecryptable(); |
||
59 | } |
||
60 |