ProfessionsValueObject::getSecondaryProfessions()   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\Profession\Model;
4
5
/**
6
 * @author  Willy Reiche
7
 * @since   2017-07-24
8
 * @version 1.0
9
 */
10
class ProfessionsValueObject
11
{
12
    /**
13
     * @var ProfessionValueObject[]
14
     */
15
    private $primaryProfessions;
16
17
    /**
18
     * @var ProfessionValueObject[]
19
     */
20
    private $secondaryProfessions;
21
22
    /**
23
     * ProfessionsValueObject constructor.
24
     *
25
     * @param ProfessionValueObject[] $primaryProfessions
26
     * @param ProfessionValueObject[] $secondaryProfessions
27
     */
28
    public function __construct(
29
        $primaryProfessions,
30
        $secondaryProfessions
31
    ) {
32
        $this->primaryProfessions = $primaryProfessions;
33
        $this->secondaryProfessions = $secondaryProfessions;
34
    }
35
36
    /**
37
     * @return ProfessionValueObject[]
38
     */
39
    public function getPrimaryProfessions()
40
    {
41
        return $this->primaryProfessions;
42
    }
43
44
    /**
45
     * @return ProfessionValueObject[]
46
     */
47
    public function getSecondaryProfessions()
48
    {
49
        return $this->secondaryProfessions;
50
    }
51
}
52