BeforeExecuteEvent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 62.5%

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 3
c 2
b 1
f 0
lcom 0
cbo 1
dl 0
loc 30
ccs 5
cts 8
cp 0.625
rs 10

3 Methods

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