AbstractTask::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
crap 1
1
<?php
2
3
namespace Assimtech\Tempo\Task;
4
5
use Symfony\Component\Console\Input\InputInterface;
6
use Symfony\Component\Console\Output\OutputInterface;
7
8
abstract class AbstractTask
9
{
10
    /** @var \Symfony\Component\Console\Input\InputInterface $input */
11
    protected $input;
12
13
    /** @var \Symfony\Component\Console\Output\OutputInterface $output */
14
    protected $output;
15
16 1
    public function __construct(InputInterface $input, OutputInterface $output)
17
    {
18 1
        $this->input = $input;
19 1
        $this->output = $output;
20 1
    }
21
22
    /**
23
     * Perform the task
24
     */
25
    abstract public function run();
26
}
27