Completed
Pull Request — master (#4)
by Alessandro
15:15 queued 12:50
created

CreateDatabaseCommand::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 3
cp 0
rs 10
cc 1
eloc 1
nc 1
nop 2
crap 2
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Facile\MongoDbBundle\Commands;
6
7
use Symfony\Component\Console\Input\InputInterface;
8
use Symfony\Component\Console\Input\InputOption;
9
use Symfony\Component\Console\Output\OutputInterface;
10
11
/**
12
 * Class CreateDatabaseCommand.
13
 */
14
class CreateDatabaseCommand extends AbstractClientCommand
15
{
16
    /**
17
     * {@inheritdoc}
18
     */
19
    protected function configure()
20
    {
21
        parent::configure();
22
        $this
23
            ->setName('mongodb:database:create')
24
            ->setDescription('Creates the configured database')
25
            ->addOption(
26
                'if-not-exists',
27
                null,
28
                InputOption::VALUE_NONE,
29
                'Don\'t trigger an error, when the database already exists'
30
            );
31
    }
32
33
    /**
34
     * {@inheritdoc}
35
     */
36
    protected function execute(InputInterface $input, OutputInterface $output)
37
    {
38
        // WTF NO API TO CREATE ?
39
    }
40
}