public function fromArray(array $data)
  {
    $this->setBrowserName($data['browser_name']);
    $this->setBrowserVersion($data['browser_version']);
    $this->setOperatingSystem($data['operating_system']);
    $this->setEngine($data['engine']);
  }
public function fromArray(array $data)
  {
    $this->setBrowserName($data['browser_name']);
    $this->setBrowserVersion($data['browser_version']);
    $this->setOperatingSystem($data['operating_system']);
    $this->setEngine($data['engine']);
  }
public function fromArray ( array $ data ) { $ this -> setBrowserName ( $ data [ 'browser_name' ] ) ; $ this -> setBrowserVersion ( $ data [ 'browser_version' ] ) ; $ this -> setOperatingSystem ( $ data [ 'operating_system' ] ) ; $ this -> setEngine ( $ data [ 'engine' ] ) ; }
Configure the user agent from a data array

@param array $data
Configure the user agent from a data array