public function configureFromUserAgentString($userAgentString, phpUserAgentStringParser $userAgentStringParser = null)
  {
    if(null === $userAgentStringParser)
    {
      $userAgentStringParser = new phpUserAgentStringParser();
    }

    $this->setUserAgentString($userAgentString);

    $this->fromArray($userAgentStringParser->parse($userAgentString));
  }
public function configureFromUserAgentString($userAgentString, phpUserAgentStringParser $userAgentStringParser = null)
  {
    if(null === $userAgentStringParser)
    {
      $userAgentStringParser = new phpUserAgentStringParser();
    }

    $this->setUserAgentString($userAgentString);

    $this->fromArray($userAgentStringParser->parse($userAgentString));
  }
public function configureFromUserAgentString ( $ userAgentString , phpUserAgentStringParser $ userAgentStringParser = null ) { if ( null === $ userAgentStringParser ) { $ userAgentStringParser = new phpUserAgentStringParser ( ) ; } $ this -> setUserAgentString ( $ userAgentString ) ; $ this -> fromArray ( $ userAgentStringParser -> parse ( $ userAgentString ) ) ; }
Configure the user agent from a user agent string
@param   string                    $userAgentString        the user agent string
@param   phpUserAgentStringParser  $userAgentStringParser  the parser used to parse the string
Configure the user agent from a user agent string