Core/Processors/Processor.php
final protected function createProcessEvent(Exchange $exchange, SerializableArray $processingContext, $type)
    {
        $event = new ProcessEvent($type);
        $event->setId(uniqid('', true));
        $event->setTimestampToCurrent();
        $event->setProcessor($this);
        $event->setExchange($exchange);
        $event->setProcessingContext($processingContext);

        return $event;
    }
final protected function createProcessEvent(Exchange $exchange, SerializableArray $processingContext, $type)
    {
        $event = new ProcessEvent($type);
        $event->setId(uniqid('', true));
        $event->setTimestampToCurrent();
        $event->setProcessor($this);
        $event->setExchange($exchange);
        $event->setProcessingContext($processingContext);

        return $event;
    }
final protected function createProcessEvent ( Exchange $ exchange , SerializableArray $ processingContext , $ type ) { $ event = new ProcessEvent ( $ type ) ; $ event -> setId ( uniqid ( '' , true ) ) ; $ event -> setTimestampToCurrent ( ) ; $ event -> setProcessor ( $ this ) ; $ event -> setExchange ( $ exchange ) ; $ event -> setProcessingContext ( $ processingContext ) ; return $ event ; }
Method to create a process event.

@param Exchange          $exchange
@param SerializableArray $processingContext
@param string            $type              Event type

@return ProcessEvent
Method to create a process event .