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

TitleValueObject   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 42
ccs 0
cts 15
cp 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
A getId() 0 4 1
A getName() 0 4 1
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