Passed
Pull Request — master (#46)
by Mike
04:10
created

Flush   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 10
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 5 1
1
<?php namespace GeneaLabs\LaravelModelCaching\Console\Commands;
2
3
use Illuminate\Console\Command;
4
5
class Flush extends Command
6
{
7
    protected $signature = 'modelCache:flush {--model=}';
8
    protected $description = 'Flush cache for a given model.';
9
10
    public function handle()
11
    {
12
        $option = $this->option('model');
13
        $model = new $option;
14
        $model->flushCache();
15
    }
16
}
17