mirror of
https://github.com/jbcr/ezmigrationbundle.git
synced 2026-03-28 02:32:13 +01:00
36 lines
694 B
PHP
36 lines
694 B
PHP
<?php
|
|
|
|
namespace Kaliop\eZMigrationBundle\API\Event;
|
|
|
|
use Symfony\Component\EventDispatcher\Event;
|
|
use Kaliop\eZMigrationBundle\API\Value\MigrationStep;
|
|
use Kaliop\eZMigrationBundle\API\ExecutorInterface;
|
|
|
|
class BeforeStepExecutionEvent extends Event
|
|
{
|
|
protected $step;
|
|
protected $executor;
|
|
|
|
public function __construct(MigrationStep $step, ExecutorInterface $executor)
|
|
{
|
|
$this->step = $step;
|
|
$this->executor = $executor;
|
|
}
|
|
|
|
/**
|
|
* @return MigrationStep
|
|
*/
|
|
public function getStep()
|
|
{
|
|
return $this->step;
|
|
}
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getExecutor()
|
|
{
|
|
return $this->executor;
|
|
}
|
|
}
|