Completed
Pull Request — master (#4)
by Alessandro
05:13
created

AbstractCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A initialize() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Facile\MongoDbBundle\Commands;
6
7
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
8
use Symfony\Component\Console\Input\InputInterface;
9
use Symfony\Component\Console\Output\OutputInterface;
10
use Symfony\Component\Console\Style\SymfonyStyle;
11
12
/**
13
 * Class AbstractCommand.
14
 */
15
class AbstractCommand extends ContainerAwareCommand
16
{
17
    /**
18
     * @var SymfonyStyle
19
     */
20
    protected $io;
21
    /**
22
     * {@inheritdoc}
23
     */
24
    protected function initialize(InputInterface $input, OutputInterface $output)
25
    {
26
        $this->io = new SymfonyStyle($input, $output);
27
    }
28
}
29