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

TalentsValueObject   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 74
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 74
ccs 0
cts 27
cp 0
rs 10

5 Methods

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