ProfessionValueObject   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 106
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 7
lcom 0
cbo 0
dl 0
loc 106
ccs 0
cts 39
cp 0
rs 10
c 0
b 0
f 0

7 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 15 1
A getId() 0 4 1
A getName() 0 4 1
A getIcon() 0 4 1
A getRank() 0 4 1
A getMax() 0 4 1
A getRecipes() 0 4 1
1
<?php
2
3
namespace Kubinashi\BattlenetApi\WorldOfWarcraft\CharacterProfileApi\Profession\Model;
4
5
/**
6
 * @author  Willy Reiche
7
 * @since   2017-07-24
8
 * @version 1.0
9
 */
10
class ProfessionValueObject
11
{
12
    /**
13
     * @var string
14
     */
15
    private $id;
16
17
    /**
18
     * @var string
19
     */
20
    private $name;
21
22
    /**
23
     * @var string
24
     */
25
    private $icon;
26
27
    /**
28
     * @var string
29
     */
30
    private $rank;
31
32
    /**
33
     * @var string
34
     */
35
    private $max;
36
37
    /**
38
     * @var string
39
     */
40
    private $recipes;
41
42
    /**
43
     * ProfessionValueObject constructor.
44
     *
45
     * @param string $id
46
     * @param string $name
47
     * @param string $icon
48
     * @param string $rank
49
     * @param string $max
50
     * @param string $recipes
51
     */
52
    public function __construct(
53
        $id,
54
        $name,
55
        $icon,
56
        $rank,
57
        $max,
58
        $recipes
59
    ) {
60
        $this->id = $id;
61
        $this->name = $name;
62
        $this->icon = $icon;
63
        $this->rank = $rank;
64
        $this->max = $max;
65
        $this->recipes = $recipes;
66
    }
67
68
    /**
69
     * @return string
70
     */
71
    public function getId()
72
    {
73
        return $this->id;
74
    }
75
76
    /**
77
     * @return string
78
     */
79
    public function getName()
80
    {
81
        return $this->name;
82
    }
83
84
    /**
85
     * @return string
86
     */
87
    public function getIcon()
88
    {
89
        return $this->icon;
90
    }
91
92
    /**
93
     * @return string
94
     */
95
    public function getRank()
96
    {
97
        return $this->rank;
98
    }
99
100
    /**
101
     * @return string
102
     */
103
    public function getMax()
104
    {
105
        return $this->max;
106
    }
107
108
    /**
109
     * @return string
110
     */
111
    public function getRecipes()
112
    {
113
        return $this->recipes;
114
    }
115
}
116