MediumTooltip::setShowColorCode()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
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