Completed
Push — output_parsers_refactor ( a7c18a...aea727 )
by Alessandro
02:44
created

EngineEvent::get()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 2.0625

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 8
ccs 3
cts 4
cp 0.75
rs 9.4285
cc 2
eloc 4
nc 2
nop 1
crap 2.0625
1
<?php
2
3
namespace Paraunit\Lifecycle;
4
5
use Symfony\Component\Console\Output\OutputInterface;
6
7
/***
8
 * Class EngineEvent
9
 * @package Paraunit\Lifecycle
10
 */
11
class EngineEvent extends AbstractEvent
12
{
13
    // This Event will be triggered before the whole paraunit engine is started
14
    const BEFORE_START = 'engine_event.before_start';
15
16
    // This Event will be triggered when paraunit finished building the process stack
17
    const START = 'engine_event.start';
18
19
    // This Event will be triggered when paraunit finished all test execution
20
    const END = 'engine_event.end';
21
22
    /** @var  OutputInterface */
23
    protected $outputInterface;
24
25
    /**
26
     * @param OutputInterface $outputInterface
27
     * @param array $context
28
     */
29 16
    public function __construct(OutputInterface $outputInterface, $context = array())
30
    {
31 16
        $this->outputInterface = $outputInterface;
32 16
        $this->context = $context;
33 16
    }
34
35
    /**
36
     * @return OutputInterface
37
     */
38 16
    public function getOutputInterface()
39
    {
40 16
        return $this->outputInterface;
41
    }
42
}
43