Gridlines::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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