| Total Complexity | 5 | 
| Total Lines | 31 | 
| Duplicated Lines | 0 % | 
| Coverage | 53.85% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php | ||
| 11 | trait IsCachedTrait | ||
| 12 | { | ||
| 13 | use CanCache; | ||
| 14 | |||
| 15 | /** | ||
| 16 | * @inheritDoc | ||
| 17 | */ | ||
| 18 | 26 | public function offsetSet($key, $value) | |
| 19 |     { | ||
| 20 | 26 | $this->needsCaching(true); | |
| 21 | 26 | parent::offsetSet($key, $value); | |
| 22 | 26 | } | |
| 23 | |||
| 24 | public function __destruct() | ||
| 27 | } | ||
| 28 | |||
| 29 | /** | ||
| 30 | * @return array | ||
| 31 | */ | ||
| 32 | protected function generateCacheData() | ||
| 35 | } | ||
| 36 | |||
| 37 | 1 | protected function doLoad(): void | |
| 45 |