Test Failed
Push — master ( e6b57e...dd7c2d )
by Christophe
07:44
created

FocusTargetTrait::setFocusTarget()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options;
4
5
/**
6
 * @author Christophe Meneses
7
 */
8
trait FocusTargetTrait
9
{
10
    /**
11
     *  The type of the entity that receives focus on mouse hover. Also affects which entity is selected by mouse
12
     * click, and which data table element is associated with events. Can be one of the following :
13
     * 'datum' - Focus on a single data point. Correlates to a cell in the data table.
14
     * 'category' - Focus on a grouping of all data points along the major axis. Correlates to a row in the data table.
15
     *
16
     * In focusTarget 'category' the tooltip displays all the category values. This may be useful for comparing values
17
     * of different series.
18
     *
19
     * Default: 'datum'
20
     *
21
     * @var string
22
     */
23
    protected $focusTarget;
24
25
    /**
26
     * @param string $focusTarget
27
     *
28
     * @return $this
29
     */
30
    public function setFocusTarget($focusTarget)
31
    {
32
        $this->focusTarget = $focusTarget;
33
34
        return $this;
35
    }
36
}
37