| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 37.5% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class CacheObserver extends Observer |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @param Cacheable | \Eloquent $model |
||
| 18 | */ |
||
| 19 | 1 | public function created($model) |
|
| 20 | { |
||
| 21 | 1 | $model::cache()->store($model); |
|
|
|
|||
| 22 | 1 | } |
|
| 23 | |||
| 24 | /** |
||
| 25 | * @param Cacheable | \Eloquent $model |
||
| 26 | */ |
||
| 27 | public function updated($model) |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param Cacheable | \Eloquent $model |
||
| 34 | */ |
||
| 35 | public function deleted($model) |
||
| 40 |