FeedAchievementValueObject::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 11
ccs 0
cts 11
cp 0
rs 9.9
c 0
b 0
f 0
cc 1
nc 1
nop 4
crap 2
1
<?php
2
3
namespace Kubinashi\BattlenetApi\WorldOfWarcraft\CharacterProfileApi\Feed\Model;
4
5
/**
6
 * @author  Willy Reiche
7
 * @since   2017-08-22
8
 * @version 1.0
9
 */
10
class FeedAchievementValueObject
11
{
12
    /**
13
     * @var string
14
     */
15
    private $type;
16
17
    /**
18
     * @var int
19
     */
20
    private $timestamp;
21
22
    /**
23
     * @var AchievementValueObject
24
     */
25
    private $achievement;
26
27
    /**
28
     * @var bool
29
     */
30
    private $featOfStrength;
31
32
    /**
33
     * AchievementValueObject constructor.
34
     * @param string                 $type
35
     * @param int                    $timestamp
36
     * @param AchievementValueObject $achievement
37
     * @param bool                   $featOfStrength
38
     */
39
    public function __construct(
40
        $type,
41
        $timestamp,
42
        $achievement,
43
        $featOfStrength
44
    ) {
45
        $this->type = $type;
46
        $this->timestamp = $timestamp;
47
        $this->achievement = $achievement;
48
        $this->featOfStrength = $featOfStrength;
49
    }
50
51
    /**
52
     * @return string
53
     */
54
    public function getType()
55
    {
56
        return $this->type;
57
    }
58
59
    /**
60
     * @return int
61
     */
62
    public function getTimestamp()
63
    {
64
        return $this->timestamp;
65
    }
66
67
    /**
68
     * @return AchievementValueObject
69
     */
70
    public function getAchievement()
71
    {
72
        return $this->achievement;
73
    }
74
75
    /**
76
     * @return bool
77
     */
78
    public function isFeatOfStrength()
79
    {
80
        return $this->featOfStrength;
81
    }
82
}
83