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

AreaOpacityTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setAreaOpacity() 0 6 1
1
<?php
2
3
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options;
4
5
/**
6
 * @author Christophe Meneses
7
 */
8
trait AreaOpacityTrait
9
{
10
    /**
11
     * The default opacity of the colored area under an area chart series, where 0.0 is fully transparent and 1.0 is
12
     * fully opaque. To specify opacity for an individual series, set the areaOpacity value in the series property.
13
     *
14
     * Default: 0.3
15
     *
16
     * @var float
17
     */
18
    protected $areaOpacity;
19
20
    /**
21
     * @param float $areaOpacity
22
     *
23
     * @return $this
24
     */
25
    public function setAreaOpacity($areaOpacity)
26
    {
27
        $this->areaOpacity = $areaOpacity;
28
29
        return $this;
30
    }
31
}
32