public function toArray($includeResultRaw = false)
{
$data = ['browser' => $this->getBrowser()->toArray(), 'renderingEngine' => $this->getRenderingEngine()->toArray(), 'operatingSystem' => $this->getOperatingSystem()->toArray(), 'device' => $this->getDevice()->toArray(), 'bot' => $this->getBot()->toArray()];
// should be only used for debug
if ($includeResultRaw === true) {
$data['providerResultRaw'] = $this->getProviderResultRaw();
}
return $data;
}