SizeAxis   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 70
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 13
c 0
b 0
f 0
dl 0
loc 70
ccs 0
cts 12
cp 0
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setMaxValue() 0 5 1
A setMinSize() 0 5 1
A setMaxSize() 0 5 1
A setMinValue() 0 5 1
1
<?php
2
3
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options;
4
5
/**
6
 * @author Christophe Meneses
7
 */
8
class SizeAxis
9
{
10
    /**
11
     * Maximum radius of the largest possible bubble, in pixels.
12
     *
13
     * @var int
14
     */
15
    protected $maxSize;
16
17
    /**
18
     * The size value (as appears in the chart data) to be mapped to sizeAxis.maxSize. Larger values will be cropped
19
     * to this value.
20
     *
21
     * @var int
22
     */
23
    protected $maxValue;
24
25
    /**
26
     * Mininum radius of the smallest possible bubble, in pixels.
27
     *
28
     * @var int
29
     */
30
    protected $minSize;
31
32
    /**
33
     * The size value (as appears in the chart data) to be mapped to sizeAxis.minSize. Smaller values will be cropped
34
     * to this value.
35
     *
36
     * @var int
37
     */
38
    protected $minValue;
39
40
    /**
41
     * @return $this
42
     */
43
    public function setMaxSize(int $maxSize)
44
    {
45
        $this->maxSize = $maxSize;
46
47
        return $this;
48
    }
49
50
    /**
51
     * @return $this
52
     */
53
    public function setMaxValue(int $maxValue)
54
    {
55
        $this->maxValue = $maxValue;
56
57
        return $this;
58
    }
59
60
    /**
61
     * @return $this
62
     */
63
    public function setMinSize(int $minSize)
64
    {
65
        $this->minSize = $minSize;
66
67
        return $this;
68
    }
69
70
    /**
71
     * @return $this
72
     */
73
    public function setMinValue(int $minValue)
74
    {
75
        $this->minValue = $minValue;
76
77
        return $this;
78
    }
79
}
80