ReputationValueObject   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 89
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 89
ccs 0
cts 33
cp 0
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 13 1
A getId() 0 4 1
A getName() 0 4 1
A getStanding() 0 4 1
A getValue() 0 4 1
A getMax() 0 4 1
1
<?php
2
3
namespace Kubinashi\BattlenetApi\WorldOfWarcraft\CharacterProfileApi\Reputation\Model;
4
5
/**
6
 * @author  Willy Reiche
7
 * @since   2017-07-28
8
 * @version 1.0
9
 */
10
class ReputationValueObject
11
{
12
    /**
13
     * @var int
14
     */
15
    private $id;
16
17
    /**
18
     * @var string
19
     */
20
    private $name;
21
22
    /**
23
     * @var int
24
     */
25
    private $standing;
26
27
    /**
28
     * @var int
29
     */
30
    private $value;
31
32
    /**
33
     * @var int
34
     */
35
    private $max;
36
37
    /**
38
     * ReputationValueObject constructor.
39
     * @param int    $id
40
     * @param string $name
41
     * @param int    $standing
42
     * @param int    $value
43
     * @param int    $max
44
     */
45
    public function __construct(
46
        $id,
47
        $name,
48
        $standing,
49
        $value,
50
        $max
51
    ) {
52
        $this->id = $id;
53
        $this->name = $name;
54
        $this->standing = $standing;
55
        $this->value = $value;
56
        $this->max = $max;
57
    }
58
59
    /**
60
     * @return int
61
     */
62
    public function getId()
63
    {
64
        return $this->id;
65
    }
66
67
    /**
68
     * @return string
69
     */
70
    public function getName()
71
    {
72
        return $this->name;
73
    }
74
75
    /**
76
     * @return int
77
     */
78
    public function getStanding()
79
    {
80
        return $this->standing;
81
    }
82
83
    /**
84
     * @return int
85
     */
86
    public function getValue()
87
    {
88
        return $this->value;
89
    }
90
91
    /**
92
     * @return int
93
     */
94
    public function getMax()
95
    {
96
        return $this->max;
97
    }
98
}
99