Passed
Push — master ( c443ba...b9fa94 )
by Willy
02:30
created

StatisticsValueObject::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\Model\Statistic;
4
5
/**
6
 * @author  Willy Reiche
7
 * @since   2017-08-26
8
 * @version 1.0
9
 */
10
class StatisticsValueObject
11
{
12
    /**
13
     * @var int
14
     */
15
    private $id;
16
    /**
17
     * @var string
18
     */
19
    private $name;
20
    /**
21
     * @var StatisticsValueObject[]
22
     */
23
    private $subCategories;
24
    /**
25
     * @var StatisticValueObject[]
26
     */
27
    private $statistics;
28
29
    /**
30
     * StatisticsValueObject constructor.
31
     * @param int                     $id
32
     * @param string                  $name
33
     * @param StatisticsValueObject[] $subCategories
34
     * @param StatisticValueObject[]  $statistics
35
     */
36
    public function __construct(
37
        $id,
38
        $name,
39
        $subCategories,
40
        $statistics
41
    ) {
42
        $this->id = $id;
43
        $this->name = $name;
44
        $this->subCategories = $subCategories;
45
        $this->statistics = $statistics;
46
    }
47
48
    /**
49
     * @return int
50
     */
51
    public function getId()
52
    {
53
        return $this->id;
54
    }
55
56
    /**
57
     * @return string
58
     */
59
    public function getName()
60
    {
61
        return $this->name;
62
    }
63
64
    /**
65
     * @return StatisticsValueObject[]
66
     */
67
    public function getSubCategories()
68
    {
69
        return $this->subCategories;
70
    }
71
72
    /**
73
     * @return StatisticValueObject[]
74
     */
75
    public function getStatistics()
76
    {
77
        return $this->statistics;
78
    }
79
}
80