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

FeedLootValueObject   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 getType() 0 4 1
A getTimestamp() 0 4 1
A getItemId() 0 4 1
A getContext() 0 4 1
A getBonusLists() 0 4 1
1
<?php
2
3
namespace Kubinashi\BattlenetApi\WorldOfWarcraft\CharacterProfileApi\Model\Feed;
4
5
/**
6
 * @author  Willy Reiche
7
 * @since   2017-08-22
8
 * @version 1.0
9
 */
10
class FeedLootValueObject
11
{
12
    /**
13
     * @var string
14
     */
15
    private $type;
16
17
    /**
18
     * @var int
19
     */
20
    private $timestamp;
21
22
    /**
23
     * @var int
24
     */
25
    private $itemId;
26
27
    /**
28
     * @var string
29
     */
30
    private $context;
31
32
    /**
33
     * @var int[]
34
     */
35
    private $bonusLists;
36
37
    /**
38
     * LootValueObject constructor.
39
     * @param string $type
40
     * @param int    $timestamp
41
     * @param int    $itemId
42
     * @param string $context
43
     * @param int[]  $bonusLists
44
     */
45
    public function __construct(
46
        $type,
47
        $timestamp,
48
        $itemId,
49
        $context,
50
        $bonusLists
51
    ) {
52
        $this->type = $type;
53
        $this->timestamp = $timestamp;
54
        $this->itemId = $itemId;
55
        $this->context = $context;
56
        $this->bonusLists = $bonusLists;
57
    }
58
59
    /**
60
     * @return string
61
     */
62
    public function getType()
63
    {
64
        return $this->type;
65
    }
66
67
    /**
68
     * @return int
69
     */
70
    public function getTimestamp()
71
    {
72
        return $this->timestamp;
73
    }
74
75
    /**
76
     * @return int
77
     */
78
    public function getItemId()
79
    {
80
        return $this->itemId;
81
    }
82
83
    /**
84
     * @return string
85
     */
86
    public function getContext()
87
    {
88
        return $this->context;
89
    }
90
91
    /**
92
     * @return int[]
93
     */
94
    public function getBonusLists()
95
    {
96
        return $this->bonusLists;
97
    }
98
}
99