Passed
Push — master ( 86b291...5e082c )
by Willy
02:08
created

ItemAppearanceValueObject   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 40
ccs 0
cts 15
cp 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getItemId() 0 4 1
A getItemAAppearanceModId() 0 4 1
1
<?php
2
3
namespace Kubinashi\BattlenetApi\WorldOfWarcraft\CharacterProfileApi\Model\Item;
4
5
/**
6
 * @author  Willy Reiche
7
 * @since   2017-08-23
8
 * @version 1.0
9
 */
10
class ItemAppearanceValueObject
11
{
12
    /**
13
     * @var int
14
     */
15
    private $itemId;
16
    /**
17
     * @var int
18
     */
19
    private $itemAAppearanceModId;
20
21
    /**
22
     * ItemAppearanceValueObject constructor.
23
     * @param int $itemId
24
     * @param int $itemAAppearanceModId
25
     */
26
    public function __construct(
27
        $itemId,
28
        $itemAAppearanceModId
29
    ) {
30
        $this->itemId = $itemId;
31
        $this->itemAAppearanceModId = $itemAAppearanceModId;
32
    }
33
34
    /**
35
     * @return int
36
     */
37
    public function getItemId()
38
    {
39
        return $this->itemId;
40
    }
41
42
    /**
43
     * @return int
44
     */
45
    public function getItemAAppearanceModId()
46
    {
47
        return $this->itemAAppearanceModId;
48
    }
49
}
50