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

Arrow   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 99
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 1
dl 0
loc 99
ccs 0
cts 23
cp 0
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A setAngle() 0 6 1
A setLength() 0 6 1
A setRadius() 0 6 1
A setSpaceAfter() 0 6 1
A setWidth() 0 6 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
    public function setAngle($angle)
55
    {
56
        $this->angle = $angle;
57
58
        return $this;
59
    }
60
61
    /**
62
     * @param int $length
63
     *
64
     * @return $this
65
     */
66
    public function setLength($length)
67
    {
68
        $this->length = $length;
69
70
        return $this;
71
    }
72
73
    /**
74
     * @param int $radius
75
     *
76
     * @return $this
77
     */
78
    public function setRadius($radius)
79
    {
80
        $this->radius = $radius;
81
82
        return $this;
83
    }
84
85
    /**
86
     * @param int $spaceAfter
87
     *
88
     * @return $this
89
     */
90
    public function setSpaceAfter($spaceAfter)
91
    {
92
        $this->spaceAfter = $spaceAfter;
93
94
        return $this;
95
    }
96
97
    /**
98
     * @param float $width
99
     *
100
     * @return $this
101
     */
102
    public function setWidth($width)
103
    {
104
        $this->width = $width;
105
106
        return $this;
107
    }
108
}
109