ConfigGenerateCommand   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 21
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 4 1
A execute() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
5
namespace Xervice\Database\Communication\Console\Command;
6
7
8
use Symfony\Component\Console\Input\InputInterface;
9
use Symfony\Component\Console\Output\OutputInterface;
10
use Xervice\Console\Business\Model\Command\AbstractCommand;
11
12
/**
13
 * @method \Xervice\Database\Business\DatabaseFacade getFacade()
14
 */
15
class ConfigGenerateCommand extends AbstractCommand
16
{
17
18
    /**
19
     * @throws \Symfony\Component\Console\Exception\InvalidArgumentException
20
     */
21
    protected function configure(): void
22
    {
23
        $this->setName('propel:config:generate')
24
             ->setDescription('Generate propel config files from project config');
25
    }
26
27
    /**
28
     * @param \Symfony\Component\Console\Input\InputInterface $input
29
     * @param \Symfony\Component\Console\Output\OutputInterface $output
30
     *
31
     * @return int|null|void
32
     */
33
    protected function execute(InputInterface $input, OutputInterface $output)
34
    {
35
        $this->getFacade()->generateConfig();
36
    }
37
}
38