Test Failed
Push — master ( e6b57e...dd7c2d )
by Christophe
07:44
created

BoxStyle::setStroke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
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
    public function __construct()
37
    {
38
        $this->gradient = new Gradient();
39
    }
40
41
    /**
42
     * @param int $rx
43
     *
44
     * @return $this
45
     */
46
    public function setRx($rx)
47 3
    {
48
        $this->rx = $rx;
49 3
50 3
        return $this;
51
    }
52
53
    /**
54
     * @param int $ry
55
     *
56
     * @return $this
57
     */
58 1
    public function setRy($ry)
59
    {
60 1
        $this->ry = $ry;
61
62 1
        return $this;
63
    }
64
}
65