Total Complexity | 4 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
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) |
|
61 | } |
||
62 | } |
||
63 |