| Total Complexity | 3 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | class SimpleCacheSweeper extends AbstractFormDataProcessor implements FormDataProcessorInterface |
||
| 13 | { |
||
| 14 | protected CacheInterface $cache; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var array<string> |
||
| 18 | */ |
||
| 19 | protected array $keys; |
||
| 20 | |||
| 21 | public function __construct(string $name, CacheInterface $cache, array $keys, ?array $fields = null) |
||
| 22 | { |
||
| 23 | parent::__construct($name, $fields); |
||
| 24 | |||
| 25 | $this->cache = $cache; |
||
| 26 | $this->keys = $keys; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function process(ServerRequestInterface $request, array $results): ?FormProcessReportInterface |
||
| 37 | ]); |
||
| 38 | } |
||
| 40 |