Browser   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 20
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setType() 0 3 1
A getType() 0 3 1
1
<?php
2
/**
3
 * @author Serhii Nekhaienko <[email protected]>
4
 * @license GPL
5
 * @copyright Serhii Nekhaienko &copy 2018
6
 * @version 4.0.0
7
 * @project endorphin-studio/browser-detector
8
 */
9
10
namespace EndorphinStudio\Detector\Data;
11
12
/**
13
 * Class Browser
14
 * Result of browser detection
15
 * @package EndorphinStudio\Detector\Data
16
 */
17
class Browser extends AbstractDataWithVersion
18
{
19
    /** @var string Browser type */
20
    protected $type;
21
22
    /**
23
     * Get browser type
24
     * @return string
25
     */
26
    public function getType(): string
27
    {
28
        return $this->type;
29
    }
30
31
    /**
32
     * @param string $type Browser type
33
     */
34
    public function setType(string $type)
35
    {
36
        $this->type = $type;
37
    }
38
}