Question   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A ask() 0 4 1
1
<?php
2
namespace Samurai\Task;
3
4
use Samurai\Task\Task;
5
use Symfony\Component\Console\Input\InputInterface;
6
use Symfony\Component\Console\Output\OutputInterface;
7
use Symfony\Component\Console\Question\Question as SimpleQuestion;
8
9
/**
10
 * Class Question
11
 * @package Samurai\Task
12
 * @author Raphaël Lefebvre <[email protected]>
13
 */
14
abstract class Question extends Task
15
{
16
    /**
17
     * @param InputInterface $input
18
     * @param OutputInterface $output
19
     * @param SimpleQuestion $question
20
     * @return mixed
21
     */
22 16
    protected function ask(InputInterface $input, OutputInterface $output, SimpleQuestion $question)
23
    {
24 16
        return $this->getService('helper_set')->get('question')->ask($input, $output, $question);
25
    }
26
}
27