DeviceDetector.php
public function setUserAgent($userAgent)
    {
        if ($this->userAgent != $userAgent) {
            $this->reset();
        }
        $this->userAgent = $userAgent;
    }
public function setUserAgent($userAgent)
    {
        if ($this->userAgent != $userAgent) {
            $this->reset();
        }
        $this->userAgent = $userAgent;
    }
public function setUserAgent ( $ userAgent ) { if ( $ this -> userAgent != $ userAgent ) { $ this -> reset ( ) ; } $ this -> userAgent = $ userAgent ; }
Sets the useragent to be parsed

@param string $userAgent
Sets the useragent to be parsed