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

PartOfCollection::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 2
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