Period   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getStart() 0 4 1
A getEnd() 0 4 1
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 \Marek\OpenWeatherMap\API\Value\Parameter\Input\DateTimeStart
11
     */
12
    private $start;
13
14
    /**
15
     * @var \Marek\OpenWeatherMap\API\Value\Parameter\Input\DateTimeEnd
16
     */
17
    private $end;
18
19
    /**
20
     * Period constructor.
21
     *
22
     * @param \Marek\OpenWeatherMap\API\Value\Parameter\Input\DateTimeStart $start
23
     * @param \Marek\OpenWeatherMap\API\Value\Parameter\Input\DateTimeEnd $end
24
     */
25
    public function __construct(DateTimeStart $start, DateTimeEnd $end)
26
    {
27
        $this->start = $start;
28
        $this->end = $end;
29
    }
30
31
    /**
32
     * @return \Marek\OpenWeatherMap\API\Value\Parameter\Input\DateTimeStart
33
     */
34
    public function getStart(): DateTimeStart
35
    {
36
        return $this->start;
37
    }
38
39
    /**
40
     * @return \Marek\OpenWeatherMap\API\Value\Parameter\Input\DateTimeEnd
41
     */
42
    public function getEnd(): DateTimeEnd
43
    {
44
        return $this->end;
45
    }
46
}
47