Completed
Push — master ( 83aeed...e335a8 )
by Alessandro
05:08
created

AbstractFinalPrinter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
onEngineEnd() 0 1 ?
1
<?php
2
3
namespace Paraunit\Printer;
4
5
use Paraunit\Lifecycle\EngineEvent;
6
use Paraunit\Parser\JSONLogParser;
7
use Symfony\Component\Console\Output\OutputInterface;
8
9
/**
10
 * Class AbstractFinalPrinter
11
 * @package Paraunit\Printer
12
 */
13
abstract class AbstractFinalPrinter
14
{
15
    /** @var  JSONLogParser */
16
    protected $logParser;
17
18
    /** @var  OutputInterface */
19
    protected $output;
20
21
    /**
22
     * FinalPrinter constructor.
23
     * @param JSONLogParser $logParser
24
     */
25 13
    public function __construct(JSONLogParser $logParser)
26
    {
27 13
        $this->logParser = $logParser;
28 13
    }
29
30
    /**
31
     * @param EngineEvent $engineEvent
32
     */
33
    public abstract function onEngineEnd(EngineEvent $engineEvent);
0 ignored issues
show
Coding Style introduced by
The abstract declaration must precede the visibility declaration
Loading history...
34
}
35