Total Complexity | 3 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class SerializeEncrypter implements IOriginalEncrypter |
||
9 | { |
||
10 | private $encrypter; |
||
11 | |||
12 | public function __construct(IOriginalEncrypter $encrypter) |
||
13 | { |
||
14 | $this->encrypter = $encrypter; |
||
15 | } |
||
16 | |||
17 | public function encrypt($value, $serialize = true) |
||
18 | { |
||
19 | return $this->encrypter->encrypt($value, $serialize); |
||
20 | } |
||
21 | |||
22 | public function decrypt($value, $serialize = true) |
||
25 | } |
||
26 | } |