MagnifyingGlass   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setEnable() 0 5 1
A setZoomFactor() 0 5 1
1
<?php
2
3
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options;
4
5
/**
6
 * @author Christophe Meneses
7
 */
8
class MagnifyingGlass
9
{
10
    /**
11
     * If true, when the user lingers over a cluttered marker, a magnifiying glass will be opened.
12
     *
13
     * Note: this feature is not supported in browsers that do not support SVG, i.e. Internet Explorer version 8 or
14
     * earlier.
15
     *
16
     * @var bool
17
     */
18
    protected $enable;
19
20
    /**
21
     * The zoom factor of the magnifying glass. Can be any number greater than 0.
22
     *
23
     * @var float
24
     */
25
    protected $zoomFactor;
26
27
    /**
28
     * @return $this
29
     */
30
    public function setEnable(bool $enable)
31
    {
32
        $this->enable = $enable;
33
34
        return $this;
35
    }
36
37
    /**
38
     * @return $this
39
     */
40
    public function setZoomFactor(float $zoomFactor)
41
    {
42
        $this->zoomFactor = $zoomFactor;
43
44
        return $this;
45
    }
46
}
47