InstallCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 34
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 4 1
1
<?php namespace Arcanesoft\Backups\Console;
2
3
use Arcanedev\Support\Bases\Command;
4
use Arcanesoft\Backups\Seeds\DatabaseSeeder;
5
6
/**
7
 * Class     InstallCommand
8
 *
9
 * @package  Arcanesoft\Backups\Console
10
 * @author   ARCANEDEV <[email protected]>
11
 */
12
class InstallCommand extends Command
13
{
14
    /* -----------------------------------------------------------------
15
     |  Properties
16
     | -----------------------------------------------------------------
17
     */
18
19
    /**
20
     * The name and signature of the console command.
21
     *
22
     * @var string
23
     */
24
    protected $signature   = 'backups:install';
25
26
    /**
27
     * The console command description.
28
     *
29
     * @var string
30
     */
31
    protected $description = 'Install the Backups module.';
32
33
    /* -----------------------------------------------------------------
34
     |  Main Methods
35
     | -----------------------------------------------------------------
36
     */
37
38
    /**
39
     * Execute the console command.
40
     */
41
    public function handle()
42
    {
43
        $this->call('db:seed', ['--class' => DatabaseSeeder::class]);
44
    }
45
}
46