Test Failed
Push — master ( e6b57e...dd7c2d )
by Christophe
07:44
created

MinorGridlines::setColor()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 6
Ratio 100 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 6
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
3
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options;
4
5
/**
6
 * @author Christophe Meneses
7
 */
8
class MinorGridlines
9
{
10
    use ColorTrait;
11
12
    /**
13
     * The number of horizontal minor gridlines between two regular gridlines.
14
     *
15
     * @var int
16
     */
17
    protected $count;
18
19
    /**
20
     * @var Units
21
     */
22
    protected $units;
23
24
    /**
25
     * MinorGridlines constructor.
26
     */
27
    public function __construct()
28
    {
29
        $this->units = new Units();
30
    }
31
32
    /**
33 3
     * @return Units
34
     */
35 3
    public function getUnits()
36 3
    {
37
        return $this->units;
38
    }
39
40
    /**
41
     * @param int $count
42 1
     *
43
     * @return $this
44 1
     */
45
    public function setCount($count)
46
    {
47
        $this->count = $count;
48
49
        return $this;
50
    }
51
}
52