Completed
Push — master ( 6b5da6...9a1463 )
by Basenko
04:09
created

InstallCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getInitializerInstance() 0 4 1
A title() 0 4 1
1
<?php
2
3
namespace MadWeb\Initializer\Console\Commands;
4
5
use Illuminate\Contracts\Container\Container;
6
7
class InstallCommand extends AbstractInitializeCommand
8
{
9
    /**
10
     * The name and signature of the console command.
11
     *
12
     * @var string
13
     */
14
    protected $signature = 'app:install
15
                            {--root : Run commands which requires root privileges}';
16
17
    /**
18
     * The console command description.
19
     *
20
     * @var string
21
     */
22
    protected $description = 'Install the application according to current environment';
23
24
    /**
25
     * Returns instance of Install class which defines initializing runner chain.
26
     *
27
     * {@inheritdoc}
28
     */
29 72
    protected function getInitializerInstance(Container $container)
30
    {
31 72
        return $container->make('project.installer');
32
    }
33
34 72
    protected function title(): string
35
    {
36 72
        return 'Applicatoin installation';
37
    }
38
}
39