mirror of
https://github.com/JBDevLabs/ezmigrationbundle.git
synced 2026-03-24 08:52:16 +01:00
36 lines
743 B
PHP
36 lines
743 B
PHP
<?php
|
|
|
|
namespace Kaliop\eZMigrationBundle\API\Event;
|
|
|
|
use Symfony\Component\EventDispatcher\Event;
|
|
use Kaliop\eZMigrationBundle\API\Value\MigrationStep;
|
|
use Kaliop\eZMigrationBundle\API\Exception\MigrationAbortedException;
|
|
|
|
class MigrationAbortedEvent extends Event
|
|
{
|
|
protected $step;
|
|
protected $exception;
|
|
|
|
public function __construct(MigrationStep $step, MigrationAbortedException $exception)
|
|
{
|
|
$this->step = $step;
|
|
$this->exception = $exception;
|
|
}
|
|
|
|
/**
|
|
* @return MigrationStep
|
|
*/
|
|
public function getStep()
|
|
{
|
|
return $this->step;
|
|
}
|
|
|
|
/**
|
|
* @return MigrationAbortedException
|
|
*/
|
|
public function getException()
|
|
{
|
|
return $this->exception;
|
|
}
|
|
}
|