MediumTooltip   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 4
c 0
b 0
f 0
dl 0
loc 18
ccs 3
cts 3
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A setShowColorCode() 0 5 1
1
<?php
2
3
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options;
4
5
/**
6
 * @author Christophe Meneses
7
 */
8
class MediumTooltip extends BasicTooltip
9
{
10
    /**
11
     * If true, show colored squares next to the series information in the tooltip. The default is true when
12
     * focusTarget is set to 'category', otherwise the default is false.
13
     *
14
     * @var bool
15
     */
16
    protected $showColorCode;
17
18
    /**
19
     * @return $this
20
     */
21 2
    public function setShowColorCode(bool $showColorCode)
22
    {
23 2
        $this->showColorCode = $showColorCode;
24
25 2
        return $this;
26
    }
27
}
28