| 1 | <?php |
||
| 12 | class BlackholeCacheItemDecorator implements CacheItemInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Decorated CacheItem implementation. |
||
| 16 | * |
||
| 17 | * @var CacheItemInterface |
||
| 18 | */ |
||
| 19 | private $cacheItem; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param CacheItemInterface $cacheItem |
||
| 23 | */ |
||
| 24 | public function __construct(CacheItemInterface $cacheItem) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * {@inheritdoc} |
||
| 31 | */ |
||
| 32 | public function getKey() |
||
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritdoc} |
||
| 39 | */ |
||
| 40 | public function get() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * {@inheritdoc} |
||
| 47 | */ |
||
| 48 | public function isHit() |
||
| 52 | |||
| 53 | /** |
||
| 54 | * {@inheritdoc} |
||
| 55 | */ |
||
| 56 | public function set($value) |
||
| 60 | |||
| 61 | /** |
||
| 62 | * {@inheritdoc} |
||
| 63 | */ |
||
| 64 | public function expiresAt($expiration) |
||
| 68 | |||
| 69 | /** |
||
| 70 | * {@inheritdoc} |
||
| 71 | */ |
||
| 72 | public function expiresAfter($time) |
||
| 76 | |||
| 77 | /** |
||
| 78 | * Returns the decorated CacheItemInterface implementation. |
||
| 79 | * |
||
| 80 | * @return CacheItemInterface |
||
| 81 | */ |
||
| 82 | public function getDecoratedItem() |
||
| 86 | } |
||
| 87 |