1 | <?php |
||
12 | trait StorageTrait |
||
13 | { |
||
14 | use AttributeTrait; |
||
15 | |||
16 | /** |
||
17 | * Init the storage array. |
||
18 | * |
||
19 | * @param ServerRequestInterface $request |
||
20 | * @param array $storage |
||
21 | * |
||
22 | * @return ServerRequestInterface |
||
23 | */ |
||
24 | private static function startStorage(ServerRequestInterface $request, array $storage) |
||
28 | |||
29 | /** |
||
30 | * Stop the storage. |
||
31 | * |
||
32 | * @param ServerRequestInterface $request |
||
33 | * |
||
34 | * @return array |
||
35 | */ |
||
36 | private static function stopStorage(ServerRequestInterface $request) |
||
43 | |||
44 | /** |
||
45 | * Returns the value of a storage array. |
||
46 | * |
||
47 | * @param ServerRequestInterface $request |
||
48 | * @param string|null $key |
||
49 | * |
||
50 | * @return array |
||
51 | */ |
||
52 | private static function &getStorage(ServerRequestInterface $request, $key = null) |
||
66 | } |
||
67 |