Files
ezmigrationbundle2/API/Event/MigrationAbortedEvent.php
2021-01-28 22:37:45 +00:00

36 lines
743 B
PHP

<?php
namespace Kaliop\eZMigrationBundle\API\Event;
use Symfony\Contracts\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;
}
}