Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
46 | private function delete(string $model, array $entities): void |
||
47 | { |
||
48 | $this->console?->warn( |
||
49 | sprintf('>> Deleting cache entities in [%s] model', class_basename($model)) |
||
50 | ); |
||
51 | |||
52 | foreach ($entities as $entity) { |
||
53 | $this->console?->line('— ' . $this->title($entity)); |
||
54 | |||
55 | $model::cache()->delete($entity); |
||
56 | |||
57 | $this->console?->info('Deleted'); |
||
58 | } |
||
61 |