UserAgentPart::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the Bouncer package.
5
 *
6
 * (c) François Hodierne <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Bouncer\Resource;
13
14
use Bouncer\Resource;
15
16
class UserAgentPart extends Resource
17
{
18
19
    /**
20
     * Name
21
     *
22
     * @var string
23
     */
24
    protected $name;
25
26
    /**
27
     * Icon
28
     *
29
     * @var string
30
     */
31
    protected $icon;
32
33
    /**
34
     * Label
35
     *
36
     * @var string
37
     */
38
    protected $label;
39
40
    public function getName()
41
    {
42
        return $this->name;
43
    }
44
45
    public function setName($name)
46
    {
47
        $this->name = $name;
48
    }
49
50
    public function getIcon()
51
    {
52
        return $this->icon;
53
    }
54
55
    public function setIcon($icon)
56
    {
57
        $this->icon = $icon;
58
    }
59
60
    public function getLabel()
61
    {
62
        return $this->label;
63
    }
64
65
    public function setLabel($label)
66
    {
67
        $this->label = $label;
68
    }
69
70
}
71