FeedBosskillValueObject::getAchievement()   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\Feed\Model;
4
5
use Kubinashi\BattlenetApi\WorldOfWarcraft\Shared\Criteria\Model\CriteriaValueObject;
6
7
/**
8
 * @author  Willy Reiche
9
 * @since   2017-08-22
10
 * @version 1.0
11
 */
12
class FeedBosskillValueObject
13
{
14
    /**
15
     * @var string
16
     */
17
    private $type;
18
19
    /**
20
     * @var int
21
     */
22
    private $timestamp;
23
24
    /**
25
     * @var AchievementValueObject
26
     */
27
    private $achievement;
28
29
    /**
30
     * @var bool
31
     */
32
    private $featOfStrength;
33
34
    /**
35
     * @var CriteriaValueObject
36
     */
37
    private $criteria;
38
39
    /**
40
     * @var int
41
     */
42
    private $quantity;
43
44
    /**
45
     * @var string
46
     */
47
    private $name;
48
49
    /**
50
     * BosskillValueObject constructor.
51
     * @param string                 $type
52
     * @param int                    $timestamp
53
     * @param AchievementValueObject $achievement
54
     * @param bool                   $featOfStrength
55
     * @param CriteriaValueObject    $criteria
56
     * @param int                    $quantity
57
     * @param string                 $name
58
     */
59
    public function __construct(
60
        $type,
61
        $timestamp,
62
        $achievement,
63
        $featOfStrength,
64
        $criteria,
65
        $quantity,
66
        $name
67
    ) {
68
        $this->type = $type;
69
        $this->timestamp = $timestamp;
70
        $this->achievement = $achievement;
71
        $this->featOfStrength = $featOfStrength;
72
        $this->criteria = $criteria;
73
        $this->quantity = $quantity;
74
        $this->name = $name;
75
    }
76
77
    /**
78
     * @return string
79
     */
80
    public function getType()
81
    {
82
        return $this->type;
83
    }
84
85
    /**
86
     * @return int
87
     */
88
    public function getTimestamp()
89
    {
90
        return $this->timestamp;
91
    }
92
93
    /**
94
     * @return AchievementValueObject
95
     */
96
    public function getAchievement()
97
    {
98
        return $this->achievement;
99
    }
100
101
    /**
102
     * @return bool
103
     */
104
    public function isFeatOfStrength()
105
    {
106
        return $this->featOfStrength;
107
    }
108
109
    /**
110
     * @return CriteriaValueObject
111
     */
112
    public function getCriteria()
113
    {
114
        return $this->criteria;
115
    }
116
117
    /**
118
     * @return int
119
     */
120
    public function getQuantity()
121
    {
122
        return $this->quantity;
123
    }
124
125
    /**
126
     * @return string
127
     */
128
    public function getName()
129
    {
130
        return $this->name;
131
    }
132
}
133