AfterExecuteEvent::__construct()   A
last analyzed

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
namespace ivol\EventDispatcher;
3
4
use ivol\ExecutionResult;
5
use Symfony\Component\EventDispatcher\Event;
6
7
class AfterExecuteEvent extends Event
8
{
9
    const EVENT_NAME = 'exec-wrapper.after_execute';
10
    /** @var  ExecutionResult */
11
    private $result;
12
13
    /**
14
     * @param ExecutionResult $result
15
     */
16 5
    public function __construct(ExecutionResult $result)
17
    {
18 5
        $this->result = $result;
19 5
    }
20
21
    /**
22
     * @return ExecutionResult
23
     */
24 5
    public function getResult()
25
    {
26 5
        return $this->result;
27
    }
28
29
    /**
30
     * @param ExecutionResult $result
31
     */
32
    public function setResult($result)
33
    {
34
        $this->result = $result;
35
    }
36
}