Completed
Pull Request — master (#384)
by Kristof
03:20
created

PartOfCollection   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 36
c 0
b 0
f 0
wmc 3
lcom 0
cbo 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getItems() 0 4 1
A getTotal() 0 4 1
1
<?php
2
3
namespace CultuurNet\UDB3\MyOrganizers;
4
5
use ValueObjects\Number\Natural;
6
7
class PartOfCollection
8
{
9
    /**
10
     * @var array
11
     */
12
    private $items;
13
14
    /**
15
     * @var Natural
16
     */
17
    private $total;
18
19
    public function __construct(
20
        array $items,
21
        Natural $total
22
    ) {
23
        $this->items = $items;
24
        $this->total = $total;
25
    }
26
27
    /**
28
     * @return array
29
     */
30
    public function getItems(): array
31
    {
32
        return $this->items;
33
    }
34
35
    /**
36
     * @return Natural
37
     */
38
    public function getTotal(): Natural
39
    {
40
        return $this->total;
41
    }
42
}
43