bad-request
3 years ago
default-process
3 years ago
default-required
3 years ago
gateway-failed
3 years ago
gateway-success
3 years ago
never
3 years ago
on-dynamic-state
3 years ago
base-action-event.php
3 years ago
base-event.php
3 years ago
base-executor.php
3 years ago
base-gateway-event.php
3 years ago
gateway-base-executor.php
3 years ago
base-gateway-event.php
20 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace Jet_Form_Builder\Actions\Events; |
| 5 | |
| 6 | abstract class Base_Gateway_Event extends Base_Event { |
| 7 | |
| 8 | abstract public function get_gateway(): string; |
| 9 | |
| 10 | abstract public function get_scenario(): string; |
| 11 | |
| 12 | public function to_array(): array { |
| 13 | return parent::to_array() + array( |
| 14 | 'gateway' => $this->get_gateway(), |
| 15 | 'scenario' => $this->get_scenario(), |
| 16 | ); |
| 17 | } |
| 18 | |
| 19 | } |
| 20 |