| Total Complexity | 6 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Coverage | 40.91% |
| Changes | 2 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 12 | trait IsCachedTrait |
||
| 13 | { |
||
| 14 | use CanCache; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @inheritDoc |
||
| 18 | */ |
||
| 19 | 26 | public function offsetSet($key, $value) |
|
| 20 | { |
||
| 21 | 26 | $this->needsCaching(true); |
|
| 22 | 26 | parent::offsetSet($key, $value); |
|
| 23 | 26 | } |
|
| 24 | |||
| 25 | public function __destruct() |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @return array |
||
| 32 | */ |
||
| 33 | protected function generateCacheData() |
||
| 40 | ); |
||
| 41 | } |
||
| 42 | |||
| 43 | 1 | protected function doLoad(): void |
|
| 61 |