TalentsValueObject::getSpell()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
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
use Kubinashi\BattlenetApi\WorldOfWarcraft\Model\SpellValueObject;
7
8
/**
9
 * @author  Willy Reiche
10
 * @since   2017-08-01
11
 * @version 1.0
12
 */
13
class TalentsValueObject
14
{
15
    /**
16
     * @var int
17
     */
18
    private $tier;
19
20
    /**
21
     * @var int
22
     */
23
    private $column;
24
25
    /**
26
     * @var SpellValueObject
27
     */
28
    private $spell;
29
30
    /**
31
     * @var SpecValueObject
32
     */
33
    private $spec;
34
35
    /**
36
     * TalentsValueObject constructor.
37
     * @param int              $tier
38
     * @param int              $column
39
     * @param SpellValueObject $spell
40
     * @param SpecValueObject  $spec
41
     */
42
    public function __construct(
43
        $tier,
44
        $column,
45
        SpellValueObject $spell,
46
        SpecValueObject $spec
47
    ) {
48
49
        $this->tier = $tier;
50
        $this->column = $column;
51
        $this->spell = $spell;
52
        $this->spec = $spec;
53
    }
54
55
    /**
56
     * @return int
57
     */
58
    public function getTier()
59
    {
60
        return $this->tier;
61
    }
62
63
    /**
64
     * @return int
65
     */
66
    public function getColumn()
67
    {
68
        return $this->column;
69
    }
70
71
    /**
72
     * @return SpellValueObject
73
     */
74
    public function getSpell()
75
    {
76
        return $this->spell;
77
    }
78
79
    /**
80
     * @return SpecValueObject
81
     */
82
    public function getSpec()
83
    {
84
        return $this->spec;
85
    }
86
}
87