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