Passed
Branch main (a5ccba)
by Gaetano
04:40
created

StepExecutedEvent::getResult()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
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 63
    public function __construct(MigrationStep $step, $result)
14
    {
15 63
        $this->step = $step;
16 63
        $this->result = $result;
17 63
    }
18
19
    /**
20
     * @return MigrationStep
21
     */
22 63
    public function getStep()
23
    {
24 63
        return $this->step;
25
    }
26
27
    /**
28
     * @return mixed
29
     */
30 63
    public function getResult()
31
    {
32 63
        return $this->result;
33
    }
34
}
35