Completed
Push — master ( 58d3fb...59de8c )
by Lexey
05:17
created

Application::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 6
cts 6
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
crap 1
1
<?php
2
3
namespace LF\EnvDiff\Console;
4
5
use LF\EnvDiff\Console\Command\ActualizeCommand;
6
use LF\EnvDiff\Console\Command\DiffCommand;
7
use Symfony\Component\Console\Application as BaseApplication;
8
9
class Application extends BaseApplication
10
{
11
    /**
12
     * {@inheritdoc}
13
     */
14 1
    public function __construct()
15
    {
16 1
        parent::__construct('Env diff', '1.0.0');
17
18 1
        $this->setAutoExit(true);
19 1
        $this->add(new DiffCommand('diff'));
20 1
        $this->add(new ActualizeCommand('actualize'));
21 1
    }
22
}
23