1 | <?php |
||
25 | class Advanced extends Guided implements Setup |
||
26 | { |
||
27 | /** |
||
28 | * Setup hook configurations by asking some questions |
||
29 | * |
||
30 | * @param \SebastianFeldmann\CaptainHook\Config $config |
||
31 | * @return void |
||
32 | * @throws \Exception |
||
33 | */ |
||
34 | 3 | public function configureHooks(Config $config) |
|
40 | /** |
||
41 | * Configure a hook by asking some questions |
||
42 | * |
||
43 | * @param \SebastianFeldmann\CaptainHook\Config\Hook $config |
||
44 | * @param string $name |
||
45 | * @throws \Exception |
||
46 | */ |
||
47 | 3 | public function configureHook(Config\Hook $config, string $name) |
|
67 | |||
68 | /** |
||
69 | * Setup a action config with user input |
||
70 | * |
||
71 | * @return \SebastianFeldmann\CaptainHook\Config\Action |
||
72 | * @throws \Exception |
||
73 | */ |
||
74 | 3 | public function getActionConfig() : Config\Action |
|
82 | |||
83 | /** |
||
84 | * Ask the user for any action options |
||
85 | * |
||
86 | * @param string $type |
||
87 | * @return array |
||
88 | * @throws \Exception |
||
89 | */ |
||
90 | 3 | public function getActionOptions(string $type) : array |
|
94 | |||
95 | /** |
||
96 | * Get the php action options |
||
97 | * |
||
98 | * @return array |
||
99 | * @throws \Exception |
||
100 | */ |
||
101 | 2 | protected function getPHPActionOptions() : array |
|
112 | |||
113 | /** |
||
114 | * Ask the user for a php action option |
||
115 | * |
||
116 | * @return array |
||
117 | * @throws \Exception |
||
118 | */ |
||
119 | 2 | protected function getPHPActionOption() : array |
|
134 | } |
||
135 |