Passed
Push — master ( 9f91ab...458136 )
by Willy
01:53
created

TitleValueObject::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

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 8
ccs 0
cts 7
cp 0
rs 9.4285
cc 1
eloc 5
nc 1
nop 2
crap 2
1
<?php
2
3
namespace Kubinashi\BattlenetApi\WorldOfWarcraft\CharacterProfileApi\Model;
4
5
/**
6
 * @author  Willy Reiche
7
 * @since   2017-08-01
8
 * @version 1.0
9
 */
10
class TitleValueObject
11
{
12
    /**
13
     * @var int
14
     */
15
    private $id;
16
17
    /**
18
     * @var string
19
     */
20
    private $name;
21
22
    /**
23
     * TitleValueObject constructor.
24
     * @param int    $id
25
     * @param string $name
26
     */
27
    public function __construct(
28
        $id,
29
        $name
30
    ) {
31
32
        $this->id = $id;
33
        $this->name = $name;
34
    }
35
36
    /**
37
     * @return int
38
     */
39
    public function getId()
40
    {
41
        return $this->id;
42
    }
43
44
    /**
45
     * @return string
46
     */
47
    public function getName()
48
    {
49
        return $this->name;
50
    }
51
}
52