| Total Complexity | 3 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 9 | class SimpleCacheDataManager implements FieldDataManagerInterface |
||
| 10 | { |
||
| 11 | protected CacheInterface $cache; |
||
| 12 | |||
| 13 | protected string $key; |
||
| 14 | |||
| 15 | protected $ttl; |
||
| 16 | |||
| 17 | public function __construct(CacheInterface $cache, string $key, $ttl = null) |
||
| 18 | { |
||
| 19 | $this->cache = $cache; |
||
| 20 | $this->key = $key; |
||
| 21 | $this->ttl = $ttl; |
||
| 22 | } |
||
| 23 | |||
| 24 | public function getCurrentData(ServerRequestInterface $request) |
||
| 31 | } |
||
| 32 | |||
| 33 | public function handleSubmittedData(ServerRequestInterface $request, $data): bool |
||
| 40 |