| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class CacheProxy extends Psr16Cache |
||
| 8 | { |
||
| 9 | protected static $data = []; |
||
| 10 | |||
| 11 | public function set($key, $value, $ttl = null): bool |
||
| 12 | { |
||
| 13 | self::$data[$key] = [ |
||
| 14 | "value" => $value, |
||
| 15 | "ttl" => $ttl |
||
| 16 | ]; |
||
| 17 | return parent::set($key, $value, $ttl); |
||
| 18 | } |
||
| 19 | |||
| 20 | public static function getData(): array |
||
| 23 | } |
||
| 24 | } |
||
| 25 |