GenerateCommand::configure()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of gpupo/pipe2
5
 *
6
 * (c) Gilmar Pupo <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 *
11
 * For more information, see
12
 * <https://opensource.gpupo.com/pipe2/>.
13
 */
14
15
namespace Gpupo\Pipe2;
16
17
use Gpupo\Pipe2\Converter\Command;
18
use Symfony\Component\Console\Input\InputInterface;
19
20
class GenerateCommand extends Command
21
{
22
    protected function configure()
23
    {
24
        parent::configure();
25
        $this
26
            ->setName('generate')
27
            ->setDescription('Generate blank Document xmlpipe2 format');
28
    }
29
30
    protected function getParameters(InputInterface $input)
31
    {
32
        $parameters = parent::getParameters($input);
33
        $parameters['input'] = '/dev/null';
34
35
        return $parameters;
36
    }
37
}
38