BoxStyle   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setRy() 0 5 1
A __construct() 0 3 1
A getGradient() 0 3 1
A setRx() 0 5 1
1
<?php
2
3
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options;
4
5
/**
6
 * @author Christophe Meneses
7
 */
8
class BoxStyle
9
{
10
    use StrokeTrait;
11
12
    use StrokeWidthTrait;
13
14
    /**
15
     *  x-radius of the corner curvature.
16
     *
17
     * @var int
18
     */
19
    protected $rx;
20
21
    /**
22
     * y-radius of the corner curvature.
23
     *
24
     * @var int
25
     */
26
    protected $ry;
27
28
    /**
29
     * @var Gradient
30
     */
31
    protected $gradient;
32
33 11
    public function __construct()
34
    {
35 11
        $this->gradient = new Gradient();
36
    }
37
38 2
    public function getGradient(): Gradient
39
    {
40 2
        return $this->gradient;
41
    }
42
43
    /**
44
     * @return $this
45
     */
46 2
    public function setRx(int $rx)
47
    {
48 2
        $this->rx = $rx;
49
50 2
        return $this;
51
    }
52
53
    /**
54
     * @return $this
55
     */
56 2
    public function setRy(int $ry)
57
    {
58 2
        $this->ry = $ry;
59
60 2
        return $this;
61
    }
62
}
63