Passed
Pull Request — develop (#24)
by Kevin
02:49
created

CommandList   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 8

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 8
dl 0
loc 16
ccs 10
cts 10
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A addCommands() 0 11 1
1
<?php
2
3
namespace Magium\Configuration\Console\Symfony;
4
5
use Magium\Configuration\Console\Command\ConfigurationBuild;
6
use Magium\Configuration\Console\Command\ConfigurationGet;
7
use Magium\Configuration\Console\Command\ConfigurationList;
8
use Magium\Configuration\Console\Command\ConfigurationSet;
9
use Magium\Configuration\Console\Command\ContextList;
10
use Magium\Configuration\Console\Command\CreateTable;
11
use Magium\Configuration\Console\Command\DefaultCommand;
12
use Symfony\Component\Console\Application;
13
14
class CommandList
15
{
16
17 1
    public function addCommands(Application $application)
18
    {
19 1
        $application->add(new DefaultCommand());
20 1
        $application->add(new ConfigurationBuild());
21 1
        $application->add(new ConfigurationGet());
22 1
        $application->add(new ConfigurationSet());
23 1
        $application->add(new ConfigurationList());
24 1
        $application->add(new ContextList());
25 1
        $application->add(new CreateTable());
26 1
        $application->setDefaultCommand(DefaultCommand::COMMAND);
27 1
    }
28
29
}
30