Passed
Push — master ( 52dd57...a4c9fa )
by Willy
02:14
created

TitleValueObject::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

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 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Kubinashi\BattlenetApi\WorldOfWarcraft\CharacterProfileApi\Title\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
        $this->id = $id;
32
        $this->name = $name;
33
    }
34
35
    /**
36
     * @return int
37
     */
38
    public function getId()
39
    {
40
        return $this->id;
41
    }
42
43
    /**
44
     * @return string
45
     */
46
    public function getName()
47
    {
48
        return $this->name;
49
    }
50
}
51