Legend   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 6
c 0
b 0
f 0
dl 0
loc 31
ccs 0
cts 5
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setPosition() 0 5 1
A getTextStyle() 0 3 1
1
<?php
2
3
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options\BubbleChart;
4
5
use CMEN\GoogleChartsBundle\GoogleCharts\Options\TextStyle;
6
7
/**
8
 * @author Christophe Meneses
9
 */
10
class Legend
11
{
12
    /**
13
     * Position of the legend. Can be one of the following :
14
     *  'top' - Above the chart.
15
     *  'bottom' - Below the chart.
16
     *  'in' - Inside the chart, at the top.
17
     *  'none' - No legend is displayed.
18
     *
19
     * @var string
20
     */
21
    protected $position;
22
23
    /**
24
     * @var TextStyle
25
     */
26
    protected $textStyle;
27
28
    public function getTextStyle(): TextStyle
29
    {
30
        return $this->textStyle;
31
    }
32
33
    /**
34
     * @return $this
35
     */
36
    public function setPosition(string $position)
37
    {
38
        $this->position = $position;
39
40
        return $this;
41
    }
42
}
43