Arrow   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 87
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 17
c 1
b 0
f 0
dl 0
loc 87
ccs 15
cts 15
cp 1
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A setRadius() 0 5 1
A setLength() 0 5 1
A setWidth() 0 5 1
A setAngle() 0 5 1
A setSpaceAfter() 0 5 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
    use ColorTrait;
13
14
    /**
15
     * The angle of the head of the arrow.
16
     *
17
     * @var int
18
     */
19
    protected $angle;
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
     * @return $this
51
     */
52 1
    public function setAngle(int $angle)
53
    {
54 1
        $this->angle = $angle;
55
56 1
        return $this;
57
    }
58
59
    /**
60
     * @return $this
61
     */
62 1
    public function setLength(int $length)
63
    {
64 1
        $this->length = $length;
65
66 1
        return $this;
67
    }
68
69
    /**
70
     * @return $this
71
     */
72 1
    public function setRadius(int $radius)
73
    {
74 1
        $this->radius = $radius;
75
76 1
        return $this;
77
    }
78
79
    /**
80
     * @return $this
81
     */
82 1
    public function setSpaceAfter(int $spaceAfter)
83
    {
84 1
        $this->spaceAfter = $spaceAfter;
85
86 1
        return $this;
87
    }
88
89
    /**
90
     * @return $this
91
     */
92 1
    public function setWidth(float $width)
93
    {
94 1
        $this->width = $width;
95
96 1
        return $this;
97
    }
98
}
99