BoxStyle::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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