Series   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 34
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 34
ccs 0
cts 7
cp 0
rs 10
wmc 3

3 Methods

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