| 1 | <?php |
||
| 22 | final class SessionFilterPersister implements FilterPersisterInterface |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var SessionInterface |
||
| 26 | */ |
||
| 27 | private $session; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param SessionInterface $session |
||
| 31 | */ |
||
| 32 | public function __construct(SessionInterface $session) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritdoc} |
||
| 39 | */ |
||
| 40 | public function get($adminCode) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * {@inheritdoc} |
||
| 47 | */ |
||
| 48 | public function set($adminCode, array $filters) |
||
| 52 | |||
| 53 | /** |
||
| 54 | * {@inheritdoc} |
||
| 55 | */ |
||
| 56 | public function reset($adminCode) |
||
| 60 | |||
| 61 | /** |
||
| 62 | * Build the session key, under which the filter should be stored for given admin code. |
||
| 63 | * |
||
| 64 | * @param string $adminCode The admin code |
||
| 65 | * |
||
| 66 | * @return string The storage key |
||
| 67 | */ |
||
| 68 | private function buildStorageKey($adminCode) |
||
| 72 | } |
||
| 73 |