src/Handlers/AbstractHandler.php
final public function updateUserAgentsWithDeviceIDMap($userAgent, $deviceID)
    {
        if (isset($this->userAgentsWithDeviceID[$this->normalizeUserAgent($userAgent)])) {
            $this->logger->debug($this->userAgentsWithDeviceID[$this->normalizeUserAgent($userAgent)] . "\t"); //old_id
            $this->logger->debug($deviceID . "\t"); //new id
            $this->logger->debug($this->normalizeUserAgent($userAgent) . "\t\n");//normalized user agent
            //$this->logger->printMessage($userAgent . "\t");//cleaned user agent
            $this->overwritten_devices[] = $this->userAgentsWithDeviceID[$this->normalizeUserAgent($userAgent)];
        }
        $this->userAgentsWithDeviceID[$this->normalizeUserAgent($userAgent)] = $deviceID;
    }
final public function updateUserAgentsWithDeviceIDMap($userAgent, $deviceID)
    {
        if (isset($this->userAgentsWithDeviceID[$this->normalizeUserAgent($userAgent)])) {
            $this->logger->debug($this->userAgentsWithDeviceID[$this->normalizeUserAgent($userAgent)] . "\t"); //old_id
            $this->logger->debug($deviceID . "\t"); //new id
            $this->logger->debug($this->normalizeUserAgent($userAgent) . "\t\n");//normalized user agent
            //$this->logger->printMessage($userAgent . "\t");//cleaned user agent
            $this->overwritten_devices[] = $this->userAgentsWithDeviceID[$this->normalizeUserAgent($userAgent)];
        }
        $this->userAgentsWithDeviceID[$this->normalizeUserAgent($userAgent)] = $deviceID;
    }
final public function updateUserAgentsWithDeviceIDMap ( $ userAgent , $ deviceID ) { if ( isset ( $ this -> userAgentsWithDeviceID [ $ this -> normalizeUserAgent ( $ userAgent ) ] ) ) { $ this -> logger -> debug ( $ this -> userAgentsWithDeviceID [ $ this -> normalizeUserAgent ( $ userAgent ) ] . "\t" ) ; //old_id $ this -> logger -> debug ( $ deviceID . "\t" ) ; //new id $ this -> logger -> debug ( $ this -> normalizeUserAgent ( $ userAgent ) . "\t\n" ) ; //normalized user agent //$this->logger->printMessage($userAgent . "\t");//cleaned user agent $ this -> overwritten_devices [ ] = $ this -> userAgentsWithDeviceID [ $ this -> normalizeUserAgent ( $ userAgent ) ] ; } $ this -> userAgentsWithDeviceID [ $ this -> normalizeUserAgent ( $ userAgent ) ] = $ deviceID ; }
Updates the map containing the classified user agents.  These are stored in the associative
array userAgentsWithDeviceID like user_agent => deviceID.
Before adding the user agent to the map it normalizes by using the normalizeUserAgent
function.

@see normalizeUserAgent()
@see userAgentsWithDeviceID

@param string $userAgent
@param string $deviceID
Updates the map containing the classified user agents . These are stored in the associative array userAgentsWithDeviceID like user_agent = > deviceID . Before adding the user agent to the map it normalizes by using the normalizeUserAgent function .