Completed
Push — master ( a8cb62...764ba2 )
by François
03:52
created

UserAgentPart   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 55
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 6
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 55
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A setName() 0 4 1
A getIcon() 0 4 1
A setIcon() 0 4 1
A getLabel() 0 4 1
A setLabel() 0 4 1
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;
13
14
class UserAgentPart extends Resource
15
{
16
17
    /**
18
     * Name
19
     *
20
     * @var string
21
     */
22
    protected $name;
23
24
    /**
25
     * Icon
26
     *
27
     * @var string
28
     */
29
    protected $icon;
30
31
    /**
32
     * Label
33
     *
34
     * @var string
35
     */
36
    protected $label;
37
38
    public function getName()
39
    {
40
        return $this->name;
41
    }
42
43
    public function setName($name)
44
    {
45
        $this->name = $name;
46
    }
47
48
    public function getIcon()
49
    {
50
        return $this->icon;
51
    }
52
53
    public function setIcon($icon)
54
    {
55
        $this->icon = $icon;
56
    }
57
58
    public function getLabel()
59
    {
60
        return $this->label;
61
    }
62
63
    public function setLabel($label)
64
    {
65
        $this->label = $label;
66
    }
67
68
}
69