Question::ask()   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 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 3
crap 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