1 | <?php |
||
17 | class Proxy implements Storage |
||
18 | { |
||
19 | /** |
||
20 | * @var Storage |
||
21 | */ |
||
22 | private $front; |
||
23 | |||
24 | /** |
||
25 | * @var Storage |
||
26 | */ |
||
27 | private $fallback; |
||
28 | |||
29 | /** |
||
30 | * Proxy constructor. |
||
31 | * @param Storage $front |
||
32 | * @param Storage $fallback |
||
33 | */ |
||
34 | public function __construct(Storage $front, Storage $fallback) |
||
39 | |||
40 | /** |
||
41 | * @param Readable $readable |
||
42 | * @param \Closure $then |
||
43 | * @return object|mixed |
||
44 | */ |
||
45 | public function remember(Readable $readable, \Closure $then) |
||
51 | } |
||
52 |