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

EngineEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

2 Methods

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