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

StyleFactory   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 1
cbo 1
dl 0
loc 26
ccs 0
cts 6
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A create() 0 4 1
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