AreaOpacityTrait::setAreaOpacity()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
ccs 0
cts 3
cp 0
crap 2
rs 10
c 1
b 0
f 0
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
     * @return $this
22
     */
23
    public function setAreaOpacity(float $areaOpacity)
24
    {
25
        $this->areaOpacity = $areaOpacity;
26
27
        return $this;
28
    }
29
}
30