public function getArchitectureFromUserAgent($userAgent, $targetToAnalyze = 'os')
    {
        switch ($targetToAnalyze) {
            case 'browser':
                $aReturn = $this->getArchitectureFromUserAgentBrowser($userAgent);
                break;
            case 'os':
                $aReturn = $this->getArchitectureFromUserAgentOperatingSystem($userAgent);
                break;
            default:
                $aReturn = ['name' => '---'];
                break;
        }
        return $aReturn;
    }
public function getArchitectureFromUserAgent($userAgent, $targetToAnalyze = 'os')
    {
        switch ($targetToAnalyze) {
            case 'browser':
                $aReturn = $this->getArchitectureFromUserAgentBrowser($userAgent);
                break;
            case 'os':
                $aReturn = $this->getArchitectureFromUserAgentOperatingSystem($userAgent);
                break;
            default:
                $aReturn = ['name' => '---'];
                break;
        }
        return $aReturn;
    }
public function getArchitectureFromUserAgent ( $ userAgent , $ targetToAnalyze = 'os' ) { switch ( $ targetToAnalyze ) { case 'browser' : $ aReturn = $ this -> getArchitectureFromUserAgentBrowser ( $ userAgent ) ; break ; case 'os' : $ aReturn = $ this -> getArchitectureFromUserAgentOperatingSystem ( $ userAgent ) ; break ; default : $ aReturn = [ 'name' => '---' ] ; break ; } return $ aReturn ; }
Return CPU architecture details from given user agent

@param string $userAgent
@param string $targetToAnalyze
@return array
Return CPU architecture details from given user agent