Test Failed
Push — master ( e6b57e...dd7c2d )
by Christophe
07:44
created

CalendarChartOptions::setTitle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 2
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
    /**
32
     * CalendarChartOptions constructor.
33
     */
34
    public function __construct()
35
    {
36
        parent::__construct();
37
38
        $this->calendar = new Calendar();
39
        $this->colorAxis = new ColorAxis();
40
        $this->noDataPattern = new NoDataPattern();
41
    }
42
43
    /**
44
     * @return Calendar
45
     */
46
    public function getCalendar()
47
    {
48
        return $this->calendar;
49
    }
50
51
    /**
52
     * @return ColorAxis
53
     */
54
    public function getColorAxis()
55
    {
56
        return $this->colorAxis;
57
    }
58
59
    /**
60
     * @return NoDataPattern
61
     */
62
    public function getNoDataPattern()
63
    {
64
        return $this->noDataPattern;
65
    }
66
}
67