Passed
Push — master ( 2b8f81...145d48 )
by Gaetano
10:22 queued 05:19
created

MigrationAbortedEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 25
ccs 0
cts 12
cp 0
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

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