| 1 | <?php  | 
            ||
| 18 | trait CacheTrait  | 
            ||
| 19 | { | 
            ||
| 20 | /**  | 
            ||
| 21 | * @var CacheInterface|null  | 
            ||
| 22 | */  | 
            ||
| 23 | protected $cache;  | 
            ||
| 24 | |||
| 25 | /**  | 
            ||
| 26 | * @param $value  | 
            ||
| 27 | * @return $this  | 
            ||
| 28 | */  | 
            ||
| 29 | public function cache($value)  | 
            ||
| 33 | |||
| 34 | /**  | 
            ||
| 35 | * @param $value  | 
            ||
| 36 | * @return $this  | 
            ||
| 37 | */  | 
            ||
| 38 | public function setCache($value)  | 
            ||
| 43 | |||
| 44 | /**  | 
            ||
| 45 | * @return CacheInterface  | 
            ||
| 46 | */  | 
            ||
| 47 | public function getCache(): CacheInterface  | 
            ||
| 51 | |||
| 52 | /**  | 
            ||
| 53 | * @param $cache  | 
            ||
| 54 | * @return CacheInterface  | 
            ||
| 55 | */  | 
            ||
| 56 | protected function resolveCache($cache): CacheInterface  | 
            ||
| 64 | }  | 
            ||
| 65 |