public function initEventLog(ContactSource $source, Contact $contact, $lineNumber)
    {
        $eventLog = new ContactEventLog();
        $eventLog->setUserId($source->getCreatedBy())
            ->setUserName($source->getCreatedByUser())
            ->setBundle('lead')
            ->setObject('import')
            ->setObjectId($contact->getId())
            ->setProperties(
                [
                    'line' => $lineNumber,
                    'file' => $source->getOriginalFile(),
                ]
            );

        return $eventLog;
    }
public function initEventLog(ContactSource $source, Contact $contact, $lineNumber)
    {
        $eventLog = new ContactEventLog();
        $eventLog->setUserId($source->getCreatedBy())
            ->setUserName($source->getCreatedByUser())
            ->setBundle('lead')
            ->setObject('import')
            ->setObjectId($contact->getId())
            ->setProperties(
                [
                    'line' => $lineNumber,
                    'file' => $source->getOriginalFile(),
                ]
            );

        return $eventLog;
    }
public function initEventLog ( ContactSource $ source , Contact $ contact , $ lineNumber ) { $ eventLog = new ContactEventLog ( ) ; $ eventLog -> setUserId ( $ source -> getCreatedBy ( ) ) -> setUserName ( $ source -> getCreatedByUser ( ) ) -> setBundle ( 'lead' ) -> setObject ( 'import' ) -> setObjectId ( $ contact -> getId ( ) ) -> setProperties ( [ 'line' => $ lineNumber , 'file' => $ source -> getOriginalFile ( ) , ] ) ; return $ eventLog ; }
Initialize ContactEventLog object and configure it as the import event.

@param ContactSource $source
@param Contact       $contact
@param               $lineNumber

@return ContactEventLog
Initialize ContactEventLog object and configure it as the import event .