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

TalentValueObject::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 11

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