Series   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 21
ccs 0
cts 3
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A setLabelInLegend() 0 5 1
1
<?php
2
3
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options\ScatterChart;
4
5
use CMEN\GoogleChartsBundle\GoogleCharts\Options\LineWidthTrait;
6
use CMEN\GoogleChartsBundle\GoogleCharts\Options\PointTrait;
7
8
/**
9
 * @author Christophe Meneses
10
 */
11
class Series extends \CMEN\GoogleChartsBundle\GoogleCharts\Options\Series
12
{
13
    use LineWidthTrait;
14
15
    use PointTrait;
16
17
    /**
18
     * The description of the series to appear in the chart legend.
19
     *
20
     * @var string
21
     */
22
    protected $labelInLegend;
23
24
    /**
25
     * @return $this
26
     */
27
    public function setLabelInLegend(string $labelInLegend)
28
    {
29
        $this->labelInLegend = $labelInLegend;
30
31
        return $this;
32
    }
33
}
34