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

Gridlines   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 66.67%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 2
dl 0
loc 45
ccs 6
cts 9
cp 0.6667
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getUnits() 0 4 1
A setCount() 0 6 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
    /**
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