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

ThemeTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 30
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A setTheme() 0 6 1
1
<?php
2
3
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options;
4
5
/**
6
 * @author Christophe Meneses
7
 */
8
trait ThemeTrait
9
{
10
    /**
11
     * A theme is a set of predefined option values that work together to achieve a specific chart behavior or visual
12
     * effect. Currently only one theme is available :
13
     * 'maximized' - Maximizes the area of the chart, and draws the legend and all of the labels inside the chart area.
14
     *   Sets the following options:
15
     *   chartArea: {width: '100%', height: '100%'},
16
     *   legend: {position: 'in'},
17
     *   titlePosition: 'in', axisTitlesPosition: 'in',
18
     *   hAxis: {textPosition: 'in'}, vAxis: {textPosition: 'in'}.
19
     *
20
     * Default: null
21
     *
22
     * @var string
23
     */
24
    protected $theme;
25
26
    /**
27
     * @param string $theme
28
     *
29
     * @return $this
30
     */
31
    public function setTheme($theme)
32
    {
33
        $this->theme = $theme;
34
35
        return $this;
36
    }
37
}
38