Passed
Push — master ( e69457...6104b4 )
by Christophe
03:08
created

Arrow::setRadius()   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 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
3
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options\GanttChart;
4
5
use CMEN\GoogleChartsBundle\GoogleCharts\Options\ColorTrait;
6
7
/**
8
 * @author Christophe Meneses
9
 */
10
class Arrow
11
{
12
    /**
13
     * The angle of the head of the arrow.
14
     *
15
     * @var int
16
     */
17
    protected $angle;
18
19
    use ColorTrait;
20
21
    /**
22
     * The length of the head of the arrow.
23
     *
24
     * @var int
25
     */
26
    protected $length;
27
28
    /**
29
     * The radius for defining the curve of the arrow between two tasks.
30
     *
31
     * @var int
32
     */
33
    protected $radius;
34
35
    /**
36
     * The amount of whitespace between the head of an arrow and the task to which it points.
37
     *
38
     * @var int
39
     */
40
    protected $spaceAfter;
41
42
    /**
43
     * The width of the arrows.
44
     *
45
     * @var float
46
     */
47
    protected $width;
48
49
    /**
50
     * @param int $angle
51
     *
52
     * @return $this
53
     */
54 1
    public function setAngle($angle)
55
    {
56 1
        $this->angle = $angle;
57
58 1
        return $this;
59
    }
60
61
    /**
62
     * @param int $length
63
     *
64
     * @return $this
65
     */
66 1
    public function setLength($length)
67
    {
68 1
        $this->length = $length;
69
70 1
        return $this;
71
    }
72
73
    /**
74
     * @param int $radius
75
     *
76
     * @return $this
77
     */
78 1
    public function setRadius($radius)
79
    {
80 1
        $this->radius = $radius;
81
82 1
        return $this;
83
    }
84
85
    /**
86
     * @param int $spaceAfter
87
     *
88
     * @return $this
89
     */
90 1
    public function setSpaceAfter($spaceAfter)
91
    {
92 1
        $this->spaceAfter = $spaceAfter;
93
94 1
        return $this;
95
    }
96
97
    /**
98
     * @param float $width
99
     *
100
     * @return $this
101
     */
102 1
    public function setWidth($width)
103
    {
104 1
        $this->width = $width;
105
106 1
        return $this;
107
    }
108
}
109