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

TalentValueObject::getCalcTalent()   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\Talent\Model;
4
5
use Kubinashi\BattlenetApi\WorldOfWarcraft\CharacterProfileApi\Shared\Model\SpecValueObject;
6
7
/**
8
 * @author  Willy Reiche
9
 * @since   2017-08-01
10
 * @version 1.0
11
 */
12
class TalentValueObject
13
{
14
    /**
15
     * @var bool
16
     */
17
    private $selected;
18
19
    /**
20
     * @var TalentsValueObject[]
21
     */
22
    private $talentsValueObject;
23
24
    /**
25
     * @var SpecValueObject
26
     */
27
    private $specValueObject;
28
29
    /**
30
     * @var string
31
     */
32
    private $calcTalent;
33
34
    /**
35
     * @var string
36
     */
37
    private $calcSpec;
38
39
    /**
40
     * TalentValueObject constructor.
41
     * @param bool                 $selected
42
     * @param TalentsValueObject[] $talentsValueObject
43
     * @param SpecValueObject      $specValueObject
44
     * @param string               $calcTalent
45
     * @param string               $calcSpec
46
     */
47
    public function __construct(
48
        $selected,
49
        $talentsValueObject,
50
        $specValueObject,
51
        $calcTalent,
52
        $calcSpec
53
    ) {
54
        $this->selected = $selected;
55
        $this->talentsValueObject = $talentsValueObject;
56
        $this->specValueObject = $specValueObject;
57
        $this->calcTalent = $calcTalent;
58
        $this->calcSpec = $calcSpec;
59
    }
60
61
    /**
62
     * @return bool
63
     */
64
    public function isSelected()
65
    {
66
        return $this->selected;
67
    }
68
69
    /**
70
     * @return TalentsValueObject[]
71
     */
72
    public function getTalentsValueObject()
73
    {
74
        return $this->talentsValueObject;
75
    }
76
77
    /**
78
     * @return SpecValueObject
79
     */
80
    public function getSpecValueObject()
81
    {
82
        return $this->specValueObject;
83
    }
84
85
    /**
86
     * @return string
87
     */
88
    public function getCalcTalent()
89
    {
90
        return $this->calcTalent;
91
    }
92
93
    /**
94
     * @return string
95
     */
96
    public function getCalcSpec()
97
    {
98
        return $this->calcSpec;
99
    }
100
}
101