Passed
Pull Request — master (#12)
by Mostafa
11:54
created

UpdateGroupCacheAction::run()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 6
rs 10
cc 2
nc 2
nop 1
1
<?php
2
3
namespace Mostafaznv\LaraCache\Actions;
4
5
use Mostafaznv\LaraCache\Actions\Support\UpdateDeleteCache;
6
7
class UpdateGroupCacheAction extends UpdateDeleteCache
8
{
9
    public function run(string $group): void
10
    {
11
        $group = $this->group($group);
12
13
        foreach ($group as $item) {
14
            UpdateCacheAction::make($this->console)->run($item);
15
        }
16
    }
17
}
18