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

MigrationSuspendedEvent::getStep()   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
use Kaliop\eZMigrationBundle\API\Exception\MigrationSuspendedException;
8
9
class MigrationSuspendedEvent extends Event
10
{
11
    protected $step;
12
    protected $exception;
13
14 1
    public function __construct(MigrationStep $step, MigrationSuspendedException $exception)
15
    {
16 1
        $this->step = $step;
17 1
        $this->exception = $exception;
18 1
    }
19
20
    /**
21
     * @return MigrationStep
22
     */
23 1
    public function getStep()
24
    {
25 1
        return $this->step;
26
    }
27
28
    /**
29
     * @return MigrationSuspendedException
30
     */
31 1
    public function getException()
32
    {
33 1
        return $this->exception;
34
    }
35
}
36