Passed
Pull Request — master (#5)
by Yo
02:29
created

SfApplication   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
namespace Yoanm\ComposerConfigManager\Infrastructure;
3
4
use Symfony\Component\Console\Application;
5
use Symfony\Component\Console\Command\Command;
6
7
class SfApplication extends Application
8
{
9
    /**
10
     * @param Command $command
11
     */
12
    public function __construct(Command $command)
13
    {
14
        parent::__construct();
15
        $this->add($command);
16
        $this->setDefaultCommand($command->getName(), true);
17
    }
18
}
19