HunterPetValueObject::getCreature()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Kubinashi\BattlenetApi\WorldOfWarcraft\CharacterProfileApi\HunterPet\Model;
4
5
use Kubinashi\BattlenetApi\WorldOfWarcraft\CharacterProfileApi\Shared\Model\SpecValueObject;
6
7
/**
8
 * @author  Willy Reiche
9
 * @since   2017-07-23
10
 * @version 1.0
11
 */
12
class HunterPetValueObject
13
{
14
    /**
15
     * @var string
16
     */
17
    private $name;
18
19
    /**
20
     * @var string
21
     */
22
    private $creature;
23
24
    /**
25
     * @var string
26
     */
27
    private $slot;
28
29
    /**
30
     * @var SpecValueObject
31
     */
32
    private $hunterPetSpecValueObject;
33
34
    /**
35
     * @var string
36
     */
37
    private $calcSpec;
38
39
    /**
40
     * @var string
41
     */
42
    private $familyId;
43
44
    /**
45
     * @var string
46
     */
47
    private $familyName;
48
49
    /**
50
     * HunterPetValueObject constructor.
51
     * @param string          $name
52
     * @param string          $creature
53
     * @param string          $slot
54
     * @param SpecValueObject $hunterPetSpecValueObject
55
     * @param string          $calcSpec
56
     * @param string          $familyId
57
     * @param string          $familyName
58
     */
59
    public function __construct(
60
        $name,
61
        $creature,
62
        $slot,
63
        $calcSpec,
64
        $familyId,
65
        $familyName,
66
        SpecValueObject $hunterPetSpecValueObject = null
67
    ) {
68
        $this->name = $name;
69
        $this->creature = $creature;
70
        $this->slot = $slot;
71
        $this->hunterPetSpecValueObject = $hunterPetSpecValueObject;
72
        $this->calcSpec = $calcSpec;
73
        $this->familyId = $familyId;
74
        $this->familyName = $familyName;
75
    }
76
77
    /**
78
     * @return string
79
     */
80
    public function getName()
81
    {
82
        return $this->name;
83
    }
84
85
    /**
86
     * @return string
87
     */
88
    public function getCreature()
89
    {
90
        return $this->creature;
91
    }
92
93
    /**
94
     * @return string
95
     */
96
    public function getSlot()
97
    {
98
        return $this->slot;
99
    }
100
101
    /**
102
     * @return SpecValueObject
103
     */
104
    public function getHunterPetSpecValueObject()
105
    {
106
        return $this->hunterPetSpecValueObject;
107
    }
108
109
    /**
110
     * @return string
111
     */
112
    public function getCalcSpec()
113
    {
114
        return $this->calcSpec;
115
    }
116
117
    /**
118
     * @return string
119
     */
120
    public function getFamilyId()
121
    {
122
        return $this->familyId;
123
    }
124
125
    /**
126
     * @return string
127
     */
128
    public function getFamilyName()
129
    {
130
        return $this->familyName;
131
    }
132
}
133