CalendarChartOptions::getNoDataPattern()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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