Application   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 3
dl 0
loc 9
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A addCommandCollection() 0 4 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