src/Dudulina/Saga/SagaRunner/EventProcessingHasStalled.php
<?php
/**
* Copyright (c) 2017 Constantin Galbenu <xprt64@gmail.com>
*/
namespace Dudulina\Saga\SagaRunner;
use Dudulina\Event\EventWithMetaData;
class EventProcessingHasStalled extends \Exception
{
/**
* @var EventWithMetaData
*/
private $eventWithMetadata;
public function __construct(EventWithMetaData $eventWithMetadata)
{
parent::__construct("EventProcessingHasStalled," . print_r($eventWithMetadata,1));
$this->eventWithMetadata = $eventWithMetadata;
}
public function getEventWithMetadata(): EventWithMetaData
{
return $this->eventWithMetadata;
}
}