NoDataPattern   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 5
c 0
b 0
f 0
dl 0
loc 17
ccs 0
cts 3
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A setBackgroundColor() 0 5 1
1
<?php
2
3
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options\CalendarChart;
4
5
use CMEN\GoogleChartsBundle\GoogleCharts\Options\ColorTrait;
6
7
/**
8
 * Calendar charts use a striped diagonal pattern to indicate that there is no data for a particular day. Use the
9
 * noDataPattern.backgroundColor and noDataPattern.color options to override the grayscale defaults.
10
 *
11
 * @author Christophe Meneses
12
 */
13
class NoDataPattern
14
{
15
    use ColorTrait;
16
17
    /**
18
     * @var string
19
     */
20
    protected $backgroundColor;
21
22
    /**
23
     * @return $this
24
     */
25
    public function setBackgroundColor(string $backgroundColor)
26
    {
27
        $this->backgroundColor = $backgroundColor;
28
29
        return $this;
30
    }
31
}
32