DeleteGroupCacheCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
c 1
b 0
f 0
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 7 1
1
<?php
2
3
namespace Mostafaznv\LaraCache\Commands;
4
5
use Illuminate\Console\Command;
6
use Mostafaznv\LaraCache\Actions\DeleteGroupCacheAction;
7
use Symfony\Component\Console\Command\Command as SymfonyCommand;
8
9
class DeleteGroupCacheCommand extends Command
10
{
11
    protected $signature = 'laracache:delete-group {group}';
12
    protected $description = 'Deletes all models and entities in a group';
13
14
    public function handle(): int
15
    {
16
        DeleteGroupCacheAction::make($this)->run(
17
            $this->argument('group')
18
        );
19
20
        return SymfonyCommand::SUCCESS;
21
    }
22
}
23