DeleteGroupCacheAction   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 4
c 1
b 0
f 0
dl 0
loc 8
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 6 2
1
<?php
2
3
namespace Mostafaznv\LaraCache\Actions;
4
5
use Mostafaznv\LaraCache\Actions\Support\UpdateDeleteCache;
6
7
class DeleteGroupCacheAction extends UpdateDeleteCache
8
{
9
    public function run(string $group): void
10
    {
11
        $group = $this->group($group);
12
13
        foreach ($group as $item) {
14
            DeleteCacheAction::make($this->console)->run($item);
15
        }
16
    }
17
}
18