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

SfApplication::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 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