Test Failed
Push — master ( 67ec1c...f465f8 )
by Willy
06:35
created

CollectionValueObject::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 9
ccs 0
cts 9
cp 0
rs 9.9666
c 0
b 0
f 0
cc 1
nc 1
nop 3
crap 2
1
<?php
2
3
namespace Kubinashi\BattlenetApi\WorldOfWarcraft\CharacterProfileApi\Collection\Model;
4
5
6
/**
7
 * @author  Willy Reiche
8
 * @since   2017-07-25
9
 * @version 1.0
10
 */
11
class CollectionValueObject
12
{
13
    /**
14
     * @var int
15
     */
16
    private $numCollected;
17
18
    /**
19
     * @var int
20
     */
21
    private $numNotCollected;
22
23
    /**
24
     * @var MountValueObject[]|PetValueObject[]
25
     */
26
    private $collected;
27
28
    /**
29
     * MountsValueObject constructor.
30
     * @param int                                 $numCollected
31
     * @param int                                 $numNotCollected
32
     * @param MountValueObject[]|PetValueObject[] $collected
33
     */
34
    public function __construct(
35
        $numCollected,
36
        $numNotCollected,
37
        $collected
38
    ) {
39
        $this->numCollected = $numCollected;
40
        $this->numNotCollected = $numNotCollected;
41
        $this->collected = $collected;
42
    }
43
44
    /**
45
     * @return int
46
     */
47
    public function getNumCollected()
48
    {
49
        return $this->numCollected;
50
    }
51
52
    /**
53
     * @return int
54
     */
55
    public function getNumNotCollected()
56
    {
57
        return $this->numNotCollected;
58
    }
59
60
    /**
61
     * @return MountValueObject[]|PetValueObject[]
62
     */
63
    public function getCollected()
64
    {
65
        return $this->collected;
66
    }
67
}
68