Completed
Push — master ( 1ee05e...99144a )
by Gaetano
05:13
created

StepExecutedEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 27
ccs 0
cts 13
cp 0
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getStep() 0 4 1
A getResult() 0 4 1
1
<?php
2
3
namespace Kaliop\eZMigrationBundle\API\Event;
4
5
use Symfony\Component\EventDispatcher\Event;
6
use Kaliop\eZMigrationBundle\API\Value\MigrationStep;
7
8
class StepExecutedEvent extends Event
9
{
10
    protected $step;
11
    protected $result;
12
13
    public function __construct(MigrationStep $step, $result)
14
    {
15
        $this->step = $step;
16
        $this->result = $result;
17
    }
18
19
    /**
20
     * @return MigrationStep
21
     */
22
    public function getStep()
23
    {
24
        return $this->step;
25
    }
26
27
    /**
28
     * @return mixed
29
     */
30
    public function getResult()
31
    {
32
        return $this->result;
33
    }
34
}
35