ViewWindow   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 44
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setMin() 0 5 1
A setMax() 0 5 1
1
<?php
2
3
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options;
4
5
/**
6
 * @author Christophe Meneses
7
 */
8
class ViewWindow
9
{
10
    /**
11
     * The zero-based row index where the cropping window ends. Data points at this index and higher will be cropped
12
     * out. In conjunction with vAxis.viewWindowMode.min, it defines a half-opened range [min, max) that denotes the
13
     * element indices to display. In other words, every index such that min <= index < max will be displayed.
14
     * Ignored when hAxis.viewWindowMode is 'pretty' or 'maximized'.
15
     *
16
     * @var int|int[]
17
     */
18
    protected $max;
19
20
    /**
21
     *  The zero-based row index where the cropping window begins. Data points at indices lower than this will be
22
     * cropped out. In conjunction with vAxis.viewWindowMode.max, it defines a half-opened range [min, max) that
23
     * denotes the element indices to display. In other words, every index such that min <= index < max will be
24
     * displayed. Ignored when hAxis.viewWindowMode is 'pretty' or 'maximized'.
25
     *
26
     * @var int|int[]
27
     */
28
    protected $min;
29
30
    /**
31
     * @param int|int[] $max
32
     *
33
     * @return $this
34
     */
35 2
    public function setMax($max)
36
    {
37 2
        $this->max = $max;
38
39 2
        return $this;
40
    }
41
42
    /**
43
     * @param int|int[] $min
44
     *
45
     * @return $this
46
     */
47 2
    public function setMin($min)
48
    {
49 2
        $this->min = $min;
50
51 2
        return $this;
52
    }
53
}
54