CalendarChartOptions   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 12
c 0
b 0
f 0
dl 0
loc 41
ccs 0
cts 11
cp 0
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getColorAxis() 0 3 1
A getCalendar() 0 3 1
A __construct() 0 7 1
A getNoDataPattern() 0 3 1
1
<?php
2
3
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options\CalendarChart;
4
5
use CMEN\GoogleChartsBundle\GoogleCharts\Options\ChartOptions;
6
use CMEN\GoogleChartsBundle\GoogleCharts\Options\ColorAxis;
7
use CMEN\GoogleChartsBundle\GoogleCharts\Options\TitleTrait;
8
9
/**
10
 * @author Christophe Meneses
11
 */
12
class CalendarChartOptions extends ChartOptions
13
{
14
    use TitleTrait;
15
16
    /**
17
     * @var Calendar
18
     */
19
    protected $calendar;
20
21
    /**
22
     * @var ColorAxis
23
     */
24
    protected $colorAxis;
25
26
    /**
27
     * @var NoDataPattern
28
     */
29
    protected $noDataPattern;
30
31
    public function __construct()
32
    {
33
        parent::__construct();
34
35
        $this->calendar = new Calendar();
36
        $this->colorAxis = new ColorAxis();
37
        $this->noDataPattern = new NoDataPattern();
38
    }
39
40
    public function getCalendar(): Calendar
41
    {
42
        return $this->calendar;
43
    }
44
45
    public function getColorAxis(): ColorAxis
46
    {
47
        return $this->colorAxis;
48
    }
49
50
    public function getNoDataPattern(): NoDataPattern
51
    {
52
        return $this->noDataPattern;
53
    }
54
}
55