Passed
Push — master ( 3a1689...d265e3 )
by Christophe
02:39
created

Gridlines::setCount()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1.0156

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 3
cts 4
cp 0.75
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 1.0156
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
    /**
26
     * Gridlines constructor.
27
     */
28 5
    public function __construct()
29
    {
30 5
        $this->units = new Units();
31 5
    }
32
33
    /**
34
     * @return Units
35
     */
36
    public function getUnits()
37
    {
38
        return $this->units;
39
    }
40
41
    /**
42
     * @param int $count
43
     *
44
     * @return $this
45
     */
46 1
    public function setCount($count)
47
    {
48
        $this->count = $count;
49
50 1
        return $this;
51 1
    }
52
}
53