Total Complexity | 5 |
Total Lines | 87 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
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) |
|
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) |
|
97 | } |
||
98 | } |
||
99 |