LineOptions::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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