Dependency   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 4
dl 0
loc 36
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A symfonyTable() 0 4 1
A symfonyConsoleOutput() 0 6 1
A symfonyOutputFormatter() 0 4 1
A symfonyTableSeparator() 0 4 1
1
<?php
2
3
namespace BestServedCold\Benchmark;
4
5
use Symfony\Component\Console\Formatter\OutputFormatter,
6
    Symfony\Component\Console\Helper\Table,
7
    Symfony\Component\Console\Helper\TableSeparator,
8
    Symfony\Component\Console\Output\ConsoleOutput;
9
10
class Dependency
11
{
12
    /**
13
     * @return Table
14
     */
15 2
    public static function symfonyTable()
16
    {
17 2
        return new Table(self::symfonyConsoleOutput());
18
    }
19
20
    /**
21
     * @return ConsoleOutput
22
     */
23 2
    public static function symfonyConsoleOutput()
24
    {
25 2
        $output = new ConsoleOutput();
26 2
        $output->setFormatter(self::symfonyOutputFormatter());
27 2
        return $output;
28
    }
29
30
    /**
31
     * @return OutputFormatter
32
     */
33 3
    public static function symfonyOutputFormatter()
34
    {
35 3
        return new OutputFormatter(true);
36
    }
37
38
    /**
39
     * @return TableSeparator
40
     */
41 2
    public static function symfonyTableSeparator()
42
    {
43 2
        return new TableSeparator;
44
    }
45
}
46