Dependency::symfonyOutputFormatter()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 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