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

HunterPetValueObject::getSlot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
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 8
    public function __construct(
60
        $name,
61
        $creature,
62
        $slot,
63
        $calcSpec,
64
        $familyId,
65
        $familyName,
66
        SpecValueObject $hunterPetSpecValueObject = null
67
    ) {
68 8
        $this->name = $name;
69 8
        $this->creature = $creature;
70 8
        $this->slot = $slot;
71 8
        $this->hunterPetSpecValueObject = $hunterPetSpecValueObject;
72 8
        $this->calcSpec = $calcSpec;
73 8
        $this->familyId = $familyId;
74 8
        $this->familyName = $familyName;
75 8
    }
76
77
    /**
78
     * @return string
79
     */
80 1
    public function getName()
81
    {
82 1
        return $this->name;
83
    }
84
85
    /**
86
     * @return string
87
     */
88 1
    public function getCreature()
89
    {
90 1
        return $this->creature;
91
    }
92
93
    /**
94
     * @return string
95
     */
96 1
    public function getSlot()
97
    {
98 1
        return $this->slot;
99
    }
100
101
    /**
102
     * @return SpecValueObject
103
     */
104 1
    public function getHunterPetSpecValueObject()
105
    {
106 1
        return $this->hunterPetSpecValueObject;
107
    }
108
109
    /**
110
     * @return string
111
     */
112 1
    public function getCalcSpec()
113
    {
114 1
        return $this->calcSpec;
115
    }
116
117
    /**
118
     * @return string
119
     */
120 1
    public function getFamilyId()
121
    {
122 1
        return $this->familyId;
123
    }
124
125
    /**
126
     * @return string
127
     */
128 1
    public function getFamilyName()
129
    {
130 1
        return $this->familyName;
131
    }
132
}
133