Gridlines   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 35
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getUnits() 0 3 1
A setCount() 0 5 1
A __construct() 0 3 1
1
<?php
2
3
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options;
4
5
/**
6
 * @author Christophe Meneses
7
 */
8
class Gridlines
9
{
10
    use ColorTrait;
11
12
    /**
13
     * The number of horizontal gridlines inside the chart area. Minimum value is 2. Specify -1 to automatically
14
     * compute the number of gridlines.
15
     *
16
     * @var int
17
     */
18
    protected $count;
19
20
    /**
21
     * @var Units
22
     */
23
    protected $units;
24
25 11
    public function __construct()
26
    {
27 11
        $this->units = new Units();
28
    }
29
30 2
    public function getUnits(): Units
31
    {
32 2
        return $this->units;
33
    }
34
35
    /**
36
     * @return $this
37
     */
38 2
    public function setCount(int $count)
39
    {
40 2
        $this->count = $count;
41
42 2
        return $this;
43
    }
44
}
45