Passed
Push — master ( 52dd57...a4c9fa )
by Willy
02:14
created

CollectionValueObject   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 57
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 57
ccs 11
cts 11
cp 1
rs 10

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 8
    public function __construct(
35
        $numCollected,
36
        $numNotCollected,
37
        $collected
38
    ) {
39 8
        $this->numCollected = $numCollected;
40 8
        $this->numNotCollected = $numNotCollected;
41 8
        $this->collected = $collected;
42 8
    }
43
44
    /**
45
     * @return int
46
     */
47 2
    public function getNumCollected()
48
    {
49 2
        return $this->numCollected;
50
    }
51
52
    /**
53
     * @return int
54
     */
55 2
    public function getNumNotCollected()
56
    {
57 2
        return $this->numNotCollected;
58
    }
59
60
    /**
61
     * @return MountValueObject[]|PetValueObject[]
62
     */
63 2
    public function getCollected()
64
    {
65 2
        return $this->collected;
66
    }
67
}
68