Total Complexity | 2 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
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) |
|
52 | } |
||
53 | } |
||
54 |