Completed
Push — master ( d35fc1...fe5f39 )
by Tomáš
7s
created

StyleFactory::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
/*
4
 * This file is part of Symplify
5
 * Copyright (c) 2016 Tomas Votruba (http://tomasvotruba.cz).
6
 */
7
8
namespace Symplify\MultiCodingStandard\Console\Style;
9
10
use Symfony\Component\Console\Input\InputInterface;
11
use Symfony\Component\Console\Output\OutputInterface;
12
use Symfony\Component\Console\Style\StyleInterface;
13
use Symfony\Component\Console\Style\SymfonyStyle;
14
15
final class StyleFactory
16
{
17
    /**
18
     * @var InputInterface
19
     */
20
    private $input;
21
22
    /**
23
     * @var OutputInterface
24
     */
25
    private $output;
26
27
    public function __construct(InputInterface $input, OutputInterface $output)
28
    {
29
        $this->input = $input;
30
        $this->output = $output;
31
    }
32
33
    /**
34
     * @return StyleInterface
35
     */
36
    public function create()
37
    {
38
        return new SymfonyStyle($this->input, $this->output);
39
    }
40
}
41