CriteriaValueObject   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 73
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 73
ccs 0
cts 27
cp 0
rs 10
c 0
b 0
f 0

5 Methods

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