1 | <?php |
||
7 | class LaravelSessionStore implements SessionStore |
||
8 | { |
||
9 | /** |
||
10 | * @var Store |
||
11 | */ |
||
12 | private $session; |
||
13 | /** |
||
14 | * Create a new session store instance. |
||
15 | * |
||
16 | * @param Store $session |
||
17 | */ |
||
18 | function __construct(Store $session) |
||
22 | /** |
||
23 | * Flash a message to the session. |
||
24 | * |
||
25 | * @param string $name |
||
26 | * @param array $data |
||
27 | */ |
||
28 | public function flash($name,$data) |
||
32 | } |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.