gateway-failed-event.php
49 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace Jet_Form_Builder\Actions\Events\Gateway_Failed; |
| 5 | |
| 6 | |
| 7 | use Jet_Form_Builder\Actions\Events\Base_Executor; |
| 8 | use Jet_Form_Builder\Actions\Events\Base_Gateway_Event; |
| 9 | use Jet_Form_Builder\Actions\Events\Default_Process\Default_Process_Executor; |
| 10 | |
| 11 | class Gateway_Failed_Event extends Base_Gateway_Event { |
| 12 | |
| 13 | public function get_id(): string { |
| 14 | return 'GATEWAY.FAILED'; |
| 15 | } |
| 16 | |
| 17 | public function get_label(): string { |
| 18 | return __( 'When canceling the passage of the gateway', 'jet-form-builder' ); |
| 19 | } |
| 20 | |
| 21 | /** |
| 22 | * @return Base_Executor[] |
| 23 | */ |
| 24 | public function executors(): array { |
| 25 | return array( |
| 26 | new Gateway_Failed_Executor(), |
| 27 | ); |
| 28 | } |
| 29 | |
| 30 | public function ignored_executors(): array { |
| 31 | return array( |
| 32 | Default_Process_Executor::class, |
| 33 | ); |
| 34 | } |
| 35 | |
| 36 | /** |
| 37 | * @return string |
| 38 | */ |
| 39 | public function get_gateway(): string { |
| 40 | return ''; |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * @return string |
| 45 | */ |
| 46 | public function get_scenario(): string { |
| 47 | return ''; |
| 48 | } |
| 49 | } |