| @@ 28-39 (lines=12) @@ | ||
| 25 | } |
|
| 26 | } |
|
| 27 | ||
| 28 | private function setupResultObject() |
|
| 29 | { |
|
| 30 | $result = $this->detector->getResultObject()->getBrowser(); |
|
| 31 | $browserData = $this->detectByType(); |
|
| 32 | foreach ($browserData as $key => $value) { |
|
| 33 | if ($key === 'originalInfo') { |
|
| 34 | $this->setAttributes($value); |
|
| 35 | continue; |
|
| 36 | } |
|
| 37 | Tools::runSetter($result, $key, $value); |
|
| 38 | } |
|
| 39 | } |
|
| 40 | ||
| 41 | protected function detectByType(): array |
|
| 42 | { |
|
| @@ 28-39 (lines=12) @@ | ||
| 25 | } |
|
| 26 | } |
|
| 27 | ||
| 28 | private function setupResultObject() |
|
| 29 | { |
|
| 30 | $result = $this->detector->getResultObject()->getDevice(); |
|
| 31 | $browserData = $this->detectByType(); |
|
| 32 | foreach ($browserData as $key => $value) { |
|
| 33 | if ($key === 'originalInfo') { |
|
| 34 | $this->setAttributes($value); |
|
| 35 | continue; |
|
| 36 | } |
|
| 37 | Tools::runSetter($result, $key, $value); |
|
| 38 | } |
|
| 39 | } |
|
| 40 | } |
|
| @@ 27-38 (lines=12) @@ | ||
| 24 | } |
|
| 25 | } |
|
| 26 | ||
| 27 | private function setupResultObject() |
|
| 28 | { |
|
| 29 | $result = $this->detector->getResultObject()->getOs(); |
|
| 30 | $osData = $this->detectByFamily(); |
|
| 31 | foreach ($osData as $key => $value) { |
|
| 32 | if ($key === 'originalInfo') { |
|
| 33 | $this->setAttributes($value); |
|
| 34 | continue; |
|
| 35 | } |
|
| 36 | Tools::runSetter($result, $key, $value); |
|
| 37 | } |
|
| 38 | } |
|
| 39 | ||
| 40 | private function detectByFamily(): array |
|
| 41 | { |
|