1 | <?php |
||
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) |
|
60 | |||
61 | /** |
||
62 | * @param int $length |
||
63 | * |
||
64 | * @return $this |
||
65 | */ |
||
66 | 1 | public function setLength($length) |
|
72 | |||
73 | /** |
||
74 | * @param int $radius |
||
75 | * |
||
76 | * @return $this |
||
77 | */ |
||
78 | 1 | public function setRadius($radius) |
|
84 | |||
85 | /** |
||
86 | * @param int $spaceAfter |
||
87 | * |
||
88 | * @return $this |
||
89 | */ |
||
90 | 1 | public function setSpaceAfter($spaceAfter) |
|
96 | |||
97 | /** |
||
98 | * @param float $width |
||
99 | * |
||
100 | * @return $this |
||
101 | */ |
||
102 | 1 | public function setWidth($width) |
|
108 | } |
||
109 |