| 1 | <?php |
||
| 11 | class SimpleCallbackAdapter implements CallbackCacheInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var CacheAdapterInterface |
||
| 15 | */ |
||
| 16 | private $cache; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param CacheAdapterInterface $cache |
||
| 20 | */ |
||
| 21 | 2 | public function __construct(CacheAdapterInterface $cache) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * @param $key |
||
| 28 | * @param callable $cb |
||
| 29 | * @return mixed|null |
||
| 30 | */ |
||
| 31 | 2 | public function get($key, callable $cb) |
|
| 42 | } |
||
| 43 |