public function saveEvent($eventData)
    {
        $serializedEvent = $this->jsonSerializer->serialize($eventData);
        $insertData = ['event_id' => md5($serializedEvent . time()), 'data' => $serializedEvent];
        $this->getConnection()->insertOnDuplicate($this->getMainTable(), $insertData, ['data']);
    }
public function saveEvent($eventData)
    {
        $serializedEvent = $this->jsonSerializer->serialize($eventData);
        $insertData = ['event_id' => md5($serializedEvent . time()), 'data' => $serializedEvent];
        $this->getConnection()->insertOnDuplicate($this->getMainTable(), $insertData, ['data']);
    }
public function saveEvent ( $ eventData ) { $ serializedEvent = $ this -> jsonSerializer -> serialize ( $ eventData ) ; $ insertData = [ 'event_id' => md5 ( $ serializedEvent . time ( ) ) , 'data' => $ serializedEvent ] ; $ this -> getConnection ( ) -> insertOnDuplicate ( $ this -> getMainTable ( ) , $ insertData , [ 'data' ] ) ; }
Save an event to the queue.

@param array $eventData Event data.

@return void
Save an event to the queue .