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

AbstractFinalPrinter::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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