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

GanttChartOptions::setWidth()   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\GanttChart;
4
5
use CMEN\GoogleChartsBundle\GoogleCharts\Options\ChartOptionsDraw;
6
use CMEN\GoogleChartsBundle\GoogleCharts\Options\HeightTrait;
7
use CMEN\GoogleChartsBundle\GoogleCharts\Options\WidthTrait;
8
9
/**
10
 * @author Christophe Meneses
11
 */
12
class GanttChartOptions extends ChartOptionsDraw
13
{
14
    /**
15
     * @var BackgroundColor
16
     */
17
    protected $backgroundColor;
18
19
    use HeightTrait;
20
21
    /**
22
     * @var Gantt
23
     */
24
    protected $gantt;
25
26
    use WidthTrait;
27
28
    /**
29
     * GanttChartOptions constructor.
30
     */
31
    public function __construct()
32
    {
33
        parent::__construct();
34
35
        $this->backgroundColor = new BackgroundColor();
36
        $this->gantt = new Gantt();
37
    }
38
39
    /**
40
     * @return BackgroundColor
41
     */
42
    public function getBackgroundColor()
43
    {
44
        return $this->backgroundColor;
45
    }
46
47
    /**
48
     * @return Gantt
49
     */
50
    public function getGantt()
51
    {
52
        return $this->gantt;
53
    }
54
}
55