1 | <?php |
||
18 | abstract class AbstractWizardHandler |
||
19 | { |
||
20 | /** |
||
21 | * Check if the handler can handle the current request. |
||
22 | * |
||
23 | * @return true |
||
24 | */ |
||
25 | abstract public function canHandle(); |
||
26 | |||
27 | /** |
||
28 | * get the arguments for same request call. |
||
29 | * |
||
30 | * @return array |
||
31 | */ |
||
32 | abstract public function getArguments(); |
||
33 | |||
34 | /** |
||
35 | * Return the current point (between -100 and 100). |
||
36 | * |
||
37 | * @return array |
||
38 | */ |
||
39 | abstract public function getCurrentPoint(); |
||
40 | |||
41 | /** |
||
42 | * Set the point (between -100 and 100). |
||
43 | * |
||
44 | * @param int $x |
||
45 | * @param int $y |
||
46 | */ |
||
47 | abstract public function setCurrentPoint($x, $y); |
||
48 | |||
49 | /** |
||
50 | * Get the public URL for the current handler. |
||
51 | * |
||
52 | * @return string |
||
53 | */ |
||
54 | abstract public function getPublicUrl(); |
||
55 | |||
56 | /** |
||
57 | * @param string $url |
||
58 | * |
||
59 | * @return string |
||
60 | */ |
||
61 | protected function displayableImageUrl($url) |
||
80 | |||
81 | /** |
||
82 | * Cleanup the position of both values. |
||
83 | * |
||
84 | * @param array $position |
||
85 | * |
||
86 | * @return int[] |
||
87 | */ |
||
88 | protected function cleanupPosition(array $position): array |
||
95 | } |
||
96 |