1 | <?php |
||
7 | class SessionStore implements RequestStateStoreInterface |
||
8 | { |
||
9 | /** @var \Symfony\Component\HttpFoundation\Session\SessionInterface */ |
||
10 | protected $session; |
||
11 | |||
12 | /** @var string */ |
||
13 | protected $providerID; |
||
14 | |||
15 | |||
16 | /** |
||
17 | * @param SessionInterface $session |
||
18 | * @param string $providerID |
||
19 | */ |
||
20 | public function __construct(SessionInterface $session, $providerID) |
||
25 | |||
26 | |||
27 | /** |
||
28 | * @param RequestState $state |
||
29 | * @throws \InvalidArgumentException |
||
30 | * @return void |
||
31 | */ |
||
32 | public function set(RequestState $state) |
||
39 | |||
40 | /** |
||
41 | * @param string $id |
||
42 | * @return RequestState|null |
||
43 | */ |
||
44 | public function get($id) |
||
61 | |||
62 | /** |
||
63 | * @param RequestState $state |
||
64 | * @return bool |
||
65 | */ |
||
66 | public function remove(RequestState $state) |
||
75 | |||
76 | /** |
||
77 | * @return void |
||
78 | */ |
||
79 | public function clear() |
||
84 | } |
||
85 |