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

PetSlotsValueObject::isLocked()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Kubinashi\BattlenetApi\WorldOfWarcraft\CharacterProfileApi\PetSlot\Model;
4
5
/**
6
 * @author  Willy Reiche
7
 * @since   2017-07-28
8
 * @version 1.0
9
 */
10
class PetSlotsValueObject
11
{
12
    /**
13
     * @var int
14
     */
15
    private $slot;
16
17
    /**
18
     * @var string
19
     */
20
    private $battlePetGuid;
21
22
    /**
23
     * @var bool
24
     */
25
    private $isEmpty;
26
27
    /**
28
     * @var bool
29
     */
30
    private $isLocked;
31
32
    /**
33
     * @var int[]
34
     */
35
    private $abilities;
36
37
    /**
38
     * PetSlotsValueObject constructor.
39
     * @param int    $slot
40
     * @param string $battlePetGuid
41
     * @param bool   $isEmpty
42
     * @param bool   $isLocked
43
     * @param int[]  $abilities
44
     */
45
    public function __construct(
46
        $slot,
47
        $battlePetGuid,
48
        $isEmpty,
49
        $isLocked,
50
        $abilities
51
    ) {
52
        $this->slot = $slot;
53
        $this->battlePetGuid = $battlePetGuid;
54
        $this->isEmpty = $isEmpty;
55
        $this->isLocked = $isLocked;
56
        $this->abilities = $abilities;
57
    }
58
59
    /**
60
     * @return int
61
     */
62
    public function getSlot()
63
    {
64
        return $this->slot;
65
    }
66
67
    /**
68
     * @return string
69
     */
70
    public function getBattlePetGuid()
71
    {
72
        return $this->battlePetGuid;
73
    }
74
75
    /**
76
     * @return bool
77
     */
78
    public function isEmpty()
79
    {
80
        return $this->isEmpty;
81
    }
82
83
    /**
84
     * @return bool
85
     */
86
    public function isLocked()
87
    {
88
        return $this->isLocked;
89
    }
90
91
    /**
92
     * @return int[]
93
     */
94
    public function getAbilities()
95
    {
96
        return $this->abilities;
97
    }
98
}
99