ConfigGenerateCommand::execute()   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
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 2
crap 2
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