src/IntegrationModuleTrait.php
public function getPrototypeIntegrationModuleEvent()
    {
        if ($this->prototypeIntegrationModuleEvent instanceof IntegrationModuleEventInterface) {
            return $this->prototypeIntegrationModuleEvent;
        }

        $eventClassName = $this->getPrototypeIntegrationModuleEventClassName();

        $r = new ReflectionClass($eventClassName);
        $event = $r->newInstance();

        if (!$event instanceof IntegrationModuleEventInterface) {
            $errMsg = sprintf('Integration module event not implement %s', IntegrationModuleEventInterface::class);
            throw new Exception\ErrorCreateIntegrationModuleEventException($errMsg);
        }

        $this->prototypeIntegrationModuleEvent = $event;

        return $this->prototypeIntegrationModuleEvent;
    }
public function getPrototypeIntegrationModuleEvent()
    {
        if ($this->prototypeIntegrationModuleEvent instanceof IntegrationModuleEventInterface) {
            return $this->prototypeIntegrationModuleEvent;
        }

        $eventClassName = $this->getPrototypeIntegrationModuleEventClassName();

        $r = new ReflectionClass($eventClassName);
        $event = $r->newInstance();

        if (!$event instanceof IntegrationModuleEventInterface) {
            $errMsg = sprintf('Integration module event not implement %s', IntegrationModuleEventInterface::class);
            throw new Exception\ErrorCreateIntegrationModuleEventException($errMsg);
        }

        $this->prototypeIntegrationModuleEvent = $event;

        return $this->prototypeIntegrationModuleEvent;
    }
Возвращает протип объекта, испольуземый для создания события бросаемого при инициализации интеграционного модуля

@return IntegrationModuleEventInterface

@throws Exception\ErrorCreateIntegrationModuleEventException