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

CollectionValueObject   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 57
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 57
ccs 0
cts 21
cp 0
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
A getNumCollected() 0 4 1
A getNumNotCollected() 0 4 1
A getCollected() 0 4 1
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