private function dispatchContextCapture()
    {
        if ($this->test || !$this->valid || !$this->payloadModel || Stat::TYPE_CONVERTED !== $this->statType) {
            return;
        }

        $campaign = $this->getCampaign();
        $event    = new ContactLedgerContextEvent(
            $campaign, $this->contactClient, $this->statType, null, $this->contact
        );
        $this->dispatcher->dispatch(
            'mautic.contactledger.context_capture',
            $event
        );
    }
private function dispatchContextCapture()
    {
        if ($this->test || !$this->valid || !$this->payloadModel || Stat::TYPE_CONVERTED !== $this->statType) {
            return;
        }

        $campaign = $this->getCampaign();
        $event    = new ContactLedgerContextEvent(
            $campaign, $this->contactClient, $this->statType, null, $this->contact
        );
        $this->dispatcher->dispatch(
            'mautic.contactledger.context_capture',
            $event
        );
    }
private function dispatchContextCapture ( ) { if ( $ this -> test || ! $ this -> valid || ! $ this -> payloadModel || Stat :: TYPE_CONVERTED !== $ this -> statType ) { return ; } $ campaign = $ this -> getCampaign ( ) ; $ event = new ContactLedgerContextEvent ( $ campaign , $ this -> contactClient , $ this -> statType , null , $ this -> contact ) ; $ this -> dispatcher -> dispatch ( 'mautic.contactledger.context_capture' , $ event ) ; }
For situations where there is no entity saved, but we still need to log a conversion.
For situations where there is no entity saved but we still need to log a conversion .