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

StatisticsValueObject   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 70
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 70
ccs 0
cts 27
cp 0
rs 10

5 Methods

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