Passed
Push — master ( c443ba...b9fa94 )
by Willy
02:30
created

StatisticValueObject::isMoney()   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\Model\Statistic;
4
5
/**
6
 * @author  Willy Reiche
7
 * @since   2017-08-26
8
 * @version 1.0
9
 */
10
class StatisticValueObject
11
{
12
    /**
13
     * @var int
14
     */
15
    private $id;
16
    /**
17
     * @var string
18
     */
19
    private $name;
20
    /**
21
     * @var int
22
     */
23
    private $quantity;
24
    /**
25
     * @var int
26
     */
27
    private $lastUpdated;
28
    /**
29
     * @var bool
30
     */
31
    private $money;
32
    /**
33
     * @var string
34
     */
35
    private $highest;
36
37
    /**
38
     * StatisticValueObject constructor.
39
     * @param int    $id
40
     * @param string $name
41
     * @param int    $quantity
42
     * @param int    $lastUpdated
43
     * @param bool   $money
44
     * @param string $highest
45
     */
46
    public function __construct(
47
        $id,
48
        $name,
49
        $quantity,
50
        $lastUpdated,
51
        $money,
52
        $highest
53
    ) {
54
        $this->id = $id;
55
        $this->name = $name;
56
        $this->quantity = $quantity;
57
        $this->lastUpdated = $lastUpdated;
58
        $this->money = $money;
59
        $this->highest = $highest;
60
    }
61
62
    /**
63
     * @return int
64
     */
65
    public function getId()
66
    {
67
        return $this->id;
68
    }
69
70
    /**
71
     * @return string
72
     */
73
    public function getName()
74
    {
75
        return $this->name;
76
    }
77
78
    /**
79
     * @return int
80
     */
81
    public function getQuantity()
82
    {
83
        return $this->quantity;
84
    }
85
86
    /**
87
     * @return int
88
     */
89
    public function getLastUpdated()
90
    {
91
        return $this->lastUpdated;
92
    }
93
94
    /**
95
     * @return bool
96
     */
97
    public function isMoney()
98
    {
99
        return $this->money;
100
    }
101
102
    /**
103
     * @return string
104
     */
105
    public function getHighest()
106
    {
107
        return $this->highest;
108
    }
109
}
110