Code Duplication    Length = 27-27 lines in 2 locations

API/Event/MigrationAbortedEvent.php 1 location

@@ 9-35 (lines=27) @@
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

API/Event/MigrationSuspendedEvent.php 1 location

@@ 9-35 (lines=27) @@
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
    public function __construct(MigrationStep $step, MigrationSuspendedException $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 MigrationSuspendedException
30
     */
31
    public function getException()
32
    {
33
        return $this->exception;
34
    }
35
}
36