DeleteGroupCacheCommand::handle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
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 7
rs 10
cc 1
nc 1
nop 0
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