StatValueObject   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 85
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 85
ccs 0
cts 33
cp 0
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 13 1
A getBaseStats() 0 4 1
A getSecondaryStats() 0 4 1
A getTertiaryStats() 0 4 1
A getDefensiveStats() 0 4 1
A getOffensiveStats() 0 4 1
1
<?php
2
3
namespace Kubinashi\BattlenetApi\WorldOfWarcraft\CharacterProfileApi\Stat\Model;
4
5
/**
6
 * @author  Willy Reiche
7
 * @since   2017-08-26
8
 * @version 1.0
9
 */
10
class StatValueObject
11
{
12
    /**
13
     * @var BaseStatValueObject
14
     */
15
    private $baseStats;
16
    /**
17
     * @var SecondaryStatValueObject
18
     */
19
    private $secondaryStats;
20
    /**
21
     * @var TertiaryStatValueObject
22
     */
23
    private $tertiaryStats;
24
    /**
25
     * @var DefensiveStatValueObject
26
     */
27
    private $defensiveStats;
28
    /**
29
     * @var OffensiveStatValueObject
30
     */
31
    private $offensiveStats;
32
33
    /**
34
     * StatValueObject constructor.
35
     * @param BaseStatValueObject      $baseStats
36
     * @param SecondaryStatValueObject $secondaryStats
37
     * @param TertiaryStatValueObject  $tertiaryStats
38
     * @param DefensiveStatValueObject $defensiveStats
39
     * @param OffensiveStatValueObject $offensiveStats
40
     */
41
    public function __construct(
42
        $baseStats,
43
        $secondaryStats,
44
        $tertiaryStats,
45
        $defensiveStats,
46
        $offensiveStats
47
    ) {
48
        $this->baseStats = $baseStats;
49
        $this->secondaryStats = $secondaryStats;
50
        $this->tertiaryStats = $tertiaryStats;
51
        $this->defensiveStats = $defensiveStats;
52
        $this->offensiveStats = $offensiveStats;
53
    }
54
55
    /**
56
     * @return BaseStatValueObject
57
     */
58
    public function getBaseStats()
59
    {
60
        return $this->baseStats;
61
    }
62
63
    /**
64
     * @return SecondaryStatValueObject
65
     */
66
    public function getSecondaryStats()
67
    {
68
        return $this->secondaryStats;
69
    }
70
71
    /**
72
     * @return TertiaryStatValueObject
73
     */
74
    public function getTertiaryStats()
75
    {
76
        return $this->tertiaryStats;
77
    }
78
79
    /**
80
     * @return DefensiveStatValueObject
81
     */
82
    public function getDefensiveStats()
83
    {
84
        return $this->defensiveStats;
85
    }
86
87
    /**
88
     * @return OffensiveStatValueObject
89
     */
90
    public function getOffensiveStats()
91
    {
92
        return $this->offensiveStats;
93
    }
94
}
95