Application::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace cwreden\php7ccAnalyser\Console;
4
5
use cwreden\php7ccAnalyser\Console\PHP7CCAnalyseCommand;
6
use Symfony\Component\Console\Input\InputInterface;
7
8
class Application extends \Symfony\Component\Console\Application
9
{
10
    const VERSION = '0.1.0';
11
12
    /**
13
     * {@inheritdoc}
14
     */
15
    public function __construct()
16
    {
17
        parent::__construct('PHP 7 Compatibility Check Analyser', static::VERSION);
18
    }
19
20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function getDefinition()
24
    {
25
        $inputDefinition = parent::getDefinition();
26
        $inputDefinition->setArguments();
27
28
        return $inputDefinition;
29
    }
30
31
    /**
32
     * {@inheritdoc}
33
     */
34
    protected function getCommandName(InputInterface $input)
35
    {
36
        return PHP7CCAnalyseCommand::COMMAND_NAME;
37
    }
38
39
    /**
40
     * {@inheritdoc}
41
     */
42
    protected function getDefaultCommands()
43
    {
44
        $defaultCommands = parent::getDefaultCommands();
45
        $defaultCommands[] = new PHP7CCAnalyseCommand();
46
47
        return $defaultCommands;
48
    }
49
}