Completed
Push — master ( 6551be...435af8 )
by Mario
09:41
created

Period::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 2
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Marek\OpenWeatherMap\API\Value\Parameter\Input;
6
7
class Period
8
{
9
    /**
10
     * @var DateTimeStart
11
     */
12
    private $start;
13
14
    /**
15
     * @var DateTimeEnd
16
     */
17
    private $end;
18
19
    public function __construct(DateTimeStart $start, DateTimeEnd $end)
20
    {
21
        $this->start = $start;
22
        $this->end = $end;
23
    }
24
25
    /**
26
     * @return DateTimeStart
27
     */
28
    public function getStart(): DateTimeStart
29
    {
30
        return $this->start;
31
    }
32
33
    /**
34
     * @return DateTimeEnd
35
     */
36
    public function getEnd(): DateTimeEnd
37
    {
38
        return $this->end;
39
    }
40
}
41