Application::addCommandCollection()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 1
crap 2
1
<?php
2
3
4
namespace Xervice\Console\Business\Model\Application;
5
6
7
use Xervice\Console\Business\Model\Command\CommandCollection;
8
9
class Application extends \Symfony\Component\Console\Application implements ApplicationInterface
10
{
11
    /**
12
     * @param \Xervice\Console\Business\Model\Command\CommandCollection $commandCollection
13
     */
14 1
    public function addCommandCollection(CommandCollection $commandCollection): void
15
    {
16 1
        foreach ($commandCollection as $command) {
17 1
            $this->add($command);
18
        }
19 1
    }
20
}
21