/**
  * @param TaskInterface $task
  * @param \Exception $exception
  */
 public function __construct(TaskInterface $task, \Exception $exception)
 {
     parent::__construct($task);
     $this->exception = $exception;
 }
Exemple #2
0
 public function testGetTask()
 {
     $task = $this->prophesize(TaskInterface::class);
     $event = new TaskEvent($task->reveal());
     $this->assertEquals($task->reveal(), $event->getTask());
 }
 /**
  * @param TaskInterface $task
  * @param TaskExecutionInterface $taskExecution
  */
 public function __construct(TaskInterface $task, TaskExecutionInterface $taskExecution)
 {
     parent::__construct($task);
     $this->taskExecution = $taskExecution;
 }