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

PetSlotsValueObject   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 89
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 6
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 89
ccs 0
cts 33
cp 0
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 13 1
A getSlot() 0 4 1
A getBattlePetGuid() 0 4 1
A isEmpty() 0 4 1
A isLocked() 0 4 1
A getAbilities() 0 4 1
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