Completed
Push — master ( d3a073...5737c8 )
by Greg
02:21
created

SymfonyStyleInjector   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 7
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A get() 0 4 1
1
<?php
2
namespace Robo\Symfony;
3
4
use Consolidation\AnnotatedCommand\CommandData;
5
use Consolidation\AnnotatedCommand\CommandProcessor;
6
use Consolidation\AnnotatedCommand\ParameterInjector;
7
use Symfony\Component\Console\Style\SymfonyStyle;
8
9
class SymfonyStyleInjector implements ParameterInjector
10
{
11
    public function get(CommandData $commandData, $interfaceName)
12
    {
13
        return new SymfonyStyle($commandData->input(), $commandData->output());
14
    }
15
}
16