Units   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 81
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 22
dl 0
loc 81
ccs 22
cts 22
cp 1
rs 10
c 0
b 0
f 0
wmc 8

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getHours() 0 3 1
A getMinutes() 0 3 1
A __construct() 0 9 1
A getDays() 0 3 1
A getMonths() 0 3 1
A getSeconds() 0 3 1
A getYears() 0 3 1
A getMilliseconds() 0 3 1
1
<?php
2
3
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options;
4
5
/**
6
 * @author Christophe Meneses
7
 */
8
class Units
9
{
10
    /**
11
     * @var Years
12
     */
13
    protected $years;
14
15
    /**
16
     * @var Months
17
     */
18
    protected $months;
19
20
    /**
21
     * @var Days
22
     */
23
    protected $days;
24
25
    /**
26
     * @var Hours
27
     */
28
    protected $hours;
29
30
    /**
31
     * @var Minutes
32
     */
33
    protected $minutes;
34
35
    /**
36
     * @var Seconds
37
     */
38
    protected $seconds;
39
40
    /**
41
     * @var Milliseconds
42
     */
43
    protected $milliseconds;
44
45 11
    public function __construct()
46
    {
47 11
        $this->years = new Years();
48 11
        $this->months = new Months();
49 11
        $this->days = new Days();
50 11
        $this->hours = new Hours();
51 11
        $this->minutes = new Minutes();
52 11
        $this->seconds = new Seconds();
53 11
        $this->milliseconds = new Milliseconds();
54
    }
55
56 2
    public function getYears(): Years
57
    {
58 2
        return $this->years;
59
    }
60
61 2
    public function getMonths(): Months
62
    {
63 2
        return $this->months;
64
    }
65
66 2
    public function getDays(): Days
67
    {
68 2
        return $this->days;
69
    }
70
71 2
    public function getHours(): Hours
72
    {
73 2
        return $this->hours;
74
    }
75
76 2
    public function getMinutes(): Minutes
77
    {
78 2
        return $this->minutes;
79
    }
80
81 2
    public function getSeconds(): Seconds
82
    {
83 2
        return $this->seconds;
84
    }
85
86 2
    public function getMilliseconds(): Milliseconds
87
    {
88 2
        return $this->milliseconds;
89
    }
90
}
91