LineOptions   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 25
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getTooltip() 0 3 1
1
<?php
2
3
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options;
4
5
/**
6
 * @author Christophe Meneses
7
 */
8
class LineOptions extends AdvancedChartOptions
9
{
10
    use AggregationTargetTrait;
11
12
    use LineDashStyleTrait;
13
14
    use LineWidthTrait;
15
16
    use PointTrait;
17
18
    /**
19
     * @var AdvancedTooltip
20
     */
21
    protected $tooltip;
22
23 3
    public function __construct()
24
    {
25 3
        parent::__construct();
26
27 3
        $this->tooltip = new AdvancedTooltip();
28
    }
29
30 1
    public function getTooltip(): AdvancedTooltip
31
    {
32 1
        return $this->tooltip;
33
    }
34
}
35