AbstractTask   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 19
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

2 Methods

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