Os::setFamily()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
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 Os
14
 * Detect of os detection
15
 * @package EndorphinStudio\Detector\Data
16
 */
17
class Os extends AbstractDataWithVersion
18
{
19
    /**
20
     * @return string Os family
21
     */
22
    public function getFamily(): string
23
    {
24
        return $this->family;
25
    }
26
27
    /**
28
     * Set Os family
29
     * @param string $family
30
     */
31
    public function setFamily(string $family)
32
    {
33
        $this->family = $family;
34
    }
35
36
    /** @var string Os family */
37
    protected $family;
38
39
    /**
40
     * @return string Browser type
41
     */
42
    public function getType(): string
43
    {
44
        return $this->type;
45
    }
46
47
    /**
48
     * Set browser type
49
     * @param string $type Browser type
50
     */
51
    public function setType(string $type)
52
    {
53
        $this->type = $type;
54
    }
55
56
    /**
57
     * @var string Browser type
58
     */
59
    protected $type;
60
}