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

BoxStyle::getGradient()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 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