Passed
Push — master ( 52dd57...a4c9fa )
by Willy
02:14
created

RaidValueObject   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 121
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 8
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 121
ccs 0
cts 45
cp 0
rs 10

8 Methods

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