| 1 | <?php |
||
| 24 | final class SessionFilterPersister implements FilterPersisterInterface |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * @var SessionInterface |
||
| 28 | */ |
||
| 29 | private $session; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param SessionInterface $session |
||
| 33 | */ |
||
| 34 | public function __construct(SessionInterface $session) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritdoc} |
||
| 41 | */ |
||
| 42 | public function get($adminCode) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * {@inheritdoc} |
||
| 49 | */ |
||
| 50 | public function set($adminCode, array $filters): void |
||
| 54 | |||
| 55 | /** |
||
| 56 | * {@inheritdoc} |
||
| 57 | */ |
||
| 58 | public function reset($adminCode): void |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Build the session key, under which the filter should be stored for given admin code. |
||
| 65 | * |
||
| 66 | * @param string $adminCode The admin code |
||
| 67 | * |
||
| 68 | * @return string The storage key |
||
| 69 | */ |
||
| 70 | private function buildStorageKey($adminCode) |
||
| 74 | } |
||
| 75 |