Passed
Push — master ( f7dffe...ed5e38 )
by Koldo
02:46
created

Console::getInput()   A

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
eloc 1
dl 0
loc 3
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Antidot\Cli\Application;
6
7
use Symfony\Component\Console\Application;
8
use Symfony\Component\Console\Input\ArgvInput;
9
use Symfony\Component\Console\Input\InputInterface;
10
use Symfony\Component\Console\Output\OutputInterface;
11
12
final class Console extends Application
13
{
14
    /** @var InputInterface */
15
    private $input;
16
17
    public function __construct(string $name = 'AntiDot Framework Console Tool', string $version = '1.0.0')
18
    {
19
        $this->input = new ArgvInput();
20
        parent::__construct($name, $version);
21
    }
22
23
    public function run(InputInterface $input = null, OutputInterface $output = null)
24
    {
25
        return parent::run($input ?? $this->input, $output); // TODO: Change the autogenerated stub
26
    }
27
28
    public function getInput(): InputInterface
29
    {
30
        return $this->input;
31
    }
32
}
33