Passed
Push — master ( d265e3...e69457 )
by Christophe
05:00
created

BoxStyle   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 65
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 3
dl 0
loc 65
ccs 11
cts 11
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getGradient() 0 4 1
A setRx() 0 6 1
A setRy() 0 6 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
    /**
34
     * BoxStyle constructor.
35
     */
36 7
    public function __construct()
37
    {
38 7
        $this->gradient = new Gradient();
39 7
    }
40
41
    /**
42
     * @return Gradient
43
     */
44 1
    public function getGradient()
45
    {
46 1
        return $this->gradient;
47
    }
48
49
    /**
50
     * @param int $rx
51
     *
52
     * @return $this
53
     */
54 1
    public function setRx($rx)
55
    {
56 1
        $this->rx = $rx;
57
58 1
        return $this;
59
    }
60
61
    /**
62
     * @param int $ry
63
     *
64
     * @return $this
65
     */
66 1
    public function setRy($ry)
67
    {
68 1
        $this->ry = $ry;
69
70 1
        return $this;
71
    }
72
}
73