1: <?php namespace Laravel\Session\Drivers;
2:
3: class Memory extends Driver {
4:
5: /**
6: * The session payload that will be returned by the driver.
7: *
8: * @var array
9: */
10: public $session;
11:
12: /**
13: * Load a session from storage by a given ID.
14: *
15: * If no session is found for the ID, null will be returned.
16: *
17: * @param string $id
18: * @return array
19: */
20: public function load($id)
21: {
22: return $this->session;
23: }
24:
25: /**
26: * Save a given session to storage.
27: *
28: * @param array $session
29: * @param array $config
30: * @param bool $exists
31: * @return void
32: */
33: public function save($session, $config, $exists)
34: {
35: //
36: }
37:
38: /**
39: * Delete a session from storage by a given ID.
40: *
41: * @param string $id
42: * @return void
43: */
44: public function delete($id)
45: {
46: //
47: }
48:
49: }