Passed
Push — master ( 458136...010310 )
by Willy
01:57
created

FeedAchievementValueObject::isFeatOfStrength()   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\Feed;
4
5
use Kubinashi\BattlenetApi\WorldOfWarcraft\Model\AchievementValueObject;
6
7
/**
8
 * @author  Willy Reiche
9
 * @since   2017-08-22
10
 * @version 1.0
11
 */
12
class FeedAchievementValueObject
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
     * AchievementValueObject constructor.
36
     * @param string                 $type
37
     * @param int                    $timestamp
38
     * @param AchievementValueObject $achievement
39
     * @param bool                   $featOfStrength
40
     */
41
    public function __construct(
42
        $type,
43
        $timestamp,
44
        $achievement,
45
        $featOfStrength
46
    ) {
47
        $this->type = $type;
48
        $this->timestamp = $timestamp;
49
        $this->achievement = $achievement;
50
        $this->featOfStrength = $featOfStrength;
51
    }
52
53
    /**
54
     * @return string
55
     */
56
    public function getType()
57
    {
58
        return $this->type;
59
    }
60
61
    /**
62
     * @return int
63
     */
64
    public function getTimestamp()
65
    {
66
        return $this->timestamp;
67
    }
68
69
    /**
70
     * @return AchievementValueObject
71
     */
72
    public function getAchievement()
73
    {
74
        return $this->achievement;
75
    }
76
77
    /**
78
     * @return bool
79
     */
80
    public function isFeatOfStrength()
81
    {
82
        return $this->featOfStrength;
83
    }
84
}
85