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

36 lines
751 B
PHP

<?php
namespace Kaliop\eZMigrationBundle\API\Event;
use Symfony\Contracts\EventDispatcher\Event;
use Kaliop\eZMigrationBundle\API\Value\MigrationStep;
use Kaliop\eZMigrationBundle\API\Exception\MigrationSuspendedException;
class MigrationSuspendedEvent extends Event
{
protected $step;
protected $exception;
public function __construct(MigrationStep $step, MigrationSuspendedException $exception)
{
$this->step = $step;
$this->exception = $exception;
}
/**
* @return MigrationStep
*/
public function getStep()
{
return $this->step;
}
/**
* @return MigrationSuspendedException
*/
public function getException()
{
return $this->exception;
}
}