Completed
Pull Request — master (#59)
by Alessandro
05:25
created

Paraunit   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 5
dl 0
loc 17
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A createApplication() 0 12 1
1
<?php
2
3
namespace Paraunit\Bin;
4
5
use Paraunit\Command\CoverageCommand;
6
use Paraunit\Command\ParallelCommand;
7
use Paraunit\Configuration\ParallelConfiguration;
8
use Paraunit\Configuration\ParallelCoverageConfiguration;
9
use Symfony\Component\Console\Application;
10
11
/**
12
 * Class Paraunit
13
 * @package Paraunit\Bin
14
 */
15
class Paraunit
16
{
17
    const VERSION = '0.7';
18
19 1
    public static function createApplication()
20
    {
21 1
        $application = new Application('Paraunit', self::VERSION);
22
23 1
        $parallelCommand = new ParallelCommand(new ParallelConfiguration());
24 1
        $application->add($parallelCommand);
25
26 1
        $CoverageCommand = new CoverageCommand(new ParallelCoverageConfiguration());
27 1
        $application->add($CoverageCommand);
28
29 1
        return $application;
30
    }
31
}
32