1 | <?php |
||
6 | abstract class EncryptingItemDecorator implements CacheItemInterface |
||
7 | { |
||
8 | /** @var CacheItemInterface */ |
||
9 | private $decorated; |
||
10 | /** @var mixed */ |
||
11 | private $decrypted; |
||
12 | |||
13 | 333 | public function __construct(CacheItemInterface $decorated) |
|
17 | |||
18 | 228 | public function getKey() |
|
22 | |||
23 | 174 | public function get() |
|
31 | |||
32 | 294 | public function getDecorated() |
|
36 | |||
37 | 222 | public function set($value) |
|
44 | |||
45 | 144 | public function isHit() |
|
50 | |||
51 | 6 | public function expiresAt($expiresAt) |
|
57 | |||
58 | 12 | public function expiresAfter($expiresAfter) |
|
64 | |||
65 | abstract protected function encrypt($data); |
||
66 | |||
67 | abstract protected function decrypt(EncryptedValue $data); |
||
68 | |||
69 | abstract protected function isDecryptable(); |
||
70 | } |
||
71 |