BeforeExecuteEvent::getParams()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace ivol\EventDispatcher;
4
5
6
use ivol\ExecutionContext;
7
use Symfony\Component\EventDispatcher\Event;
8
9
class BeforeExecuteEvent extends Event
10
{
11
    const EVENT_NAME = 'exec-wrapper.before_execute';
12
    /** @var ExecutionContext */
13
    private $params;
14
15
    /**
16
     * @param ExecutionContext $params
17
     */
18 5
    public function __construct(ExecutionContext $params)
19
    {
20 5
        $this->params = $params;
21 5
    }
22
23
    /**
24
     * @return ExecutionContext
25
     */
26 5
    public function getParams()
27
    {
28 5
        return $this->params;
29
    }
30
31
    /**
32
     * @param ExecutionContext $params
33
     */
34
    public function setParams($params)
35
    {
36
        $this->params = $params;
37
    }
38
}