Test Failed
Push — master ( 67ec1c...f465f8 )
by Willy
06:35
created

PetStatValueObject   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 0
Metric Value
wmc 8
lcom 0
cbo 0
dl 0
loc 121
ccs 0
cts 45
cp 0
rs 10
c 0
b 0
f 0

8 Methods

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