AdvancedSeries   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setLabelInLegend() 0 5 1
A setTargetAxisIndex() 0 5 1
1
<?php
2
3
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options;
4
5
/**
6
 * @author Christophe Meneses
7
 */
8
class AdvancedSeries extends Series
9
{
10
    /**
11
     * Which axis to assign this series to, where 0 is the default axis, and 1 is the opposite axis. Default value is
12
     * 0; set to 1 to define a chart where different series are rendered against different axes. At least one series
13
     * much be allocated to the default axis. You can define a different scale for different axes.
14
     *
15
     * @var int
16
     */
17
    protected $targetAxisIndex;
18
19
    /**
20
     * The description of the series to appear in the chart legend.
21
     *
22
     * @var string
23
     */
24
    protected $labelInLegend;
25
26
    /**
27
     * @return $this
28
     */
29
    public function setTargetAxisIndex(int $targetAxisIndex)
30
    {
31
        $this->targetAxisIndex = $targetAxisIndex;
32
33
        return $this;
34
    }
35
36
    /**
37
     * @return $this
38
     */
39
    public function setLabelInLegend(string $labelInLegend)
40
    {
41
        $this->labelInLegend = $labelInLegend;
42
43
        return $this;
44
    }
45
}
46