Passed
Push — master ( e69457...6104b4 )
by Christophe
03:08
created

GanttChartOptions   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 4
dl 0
loc 41
ccs 8
cts 8
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getBackgroundColor() 0 4 1
A getGantt() 0 4 1
1
<?php
2
3
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options\GanttChart;
4
5
use CMEN\GoogleChartsBundle\GoogleCharts\Options\ChartOptionsInterface;
6
use CMEN\GoogleChartsBundle\GoogleCharts\Options\HeightTrait;
7
use CMEN\GoogleChartsBundle\GoogleCharts\Options\WidthTrait;
8
9
/**
10
 * @author Christophe Meneses
11
 */
12
class GanttChartOptions implements ChartOptionsInterface
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 2
    public function __construct()
32
    {
33 2
        $this->backgroundColor = new BackgroundColor();
34 2
        $this->gantt = new Gantt();
35 2
    }
36
37
    /**
38
     * @return BackgroundColor
39
     */
40 1
    public function getBackgroundColor()
41
    {
42 1
        return $this->backgroundColor;
43
    }
44
45
    /**
46
     * @return Gantt
47
     */
48 1
    public function getGantt()
49
    {
50 1
        return $this->gantt;
51
    }
52
}
53