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

CriteriaValueObject::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 9

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 11
ccs 0
cts 11
cp 0
rs 9.4285
cc 1
eloc 9
nc 1
nop 4
crap 2
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