never-event.php
30 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace Jet_Form_Builder\Actions\Events\Never; |
| 5 | |
| 6 | |
| 7 | use Jet_Form_Builder\Actions\Events\Base_Event; |
| 8 | use Jet_Form_Builder\Classes\Arrayable\Array_Continue_Exception; |
| 9 | |
| 10 | class Never_Event extends Base_Event { |
| 11 | |
| 12 | public function get_id(): string { |
| 13 | return 'never'; |
| 14 | } |
| 15 | |
| 16 | public function executors(): array { |
| 17 | return array(); |
| 18 | } |
| 19 | |
| 20 | public function execute() { |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * @return array |
| 25 | * @throws Array_Continue_Exception |
| 26 | */ |
| 27 | public function to_array(): array { |
| 28 | throw new Array_Continue_Exception( 'This is hidden event' ); |
| 29 | } |
| 30 | } |