advanced-rule.php
3 years ago
match-not-regexp-rule.php
3 years ago
match-regexp-rule.php
3 years ago
must-contain-characters-rule.php
3 years ago
must-equal-rule.php
3 years ago
must-not-contain-characters-rule.php
3 years ago
server-side-rule.php
3 years ago
advanced-rule.php
27 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace Jet_Form_Builder\Blocks\Advanced_Rules; |
| 5 | |
| 6 | |
| 7 | use Jet_Form_Builder\Classes\Arrayable\Arrayable; |
| 8 | |
| 9 | abstract class Advanced_Rule implements Arrayable { |
| 10 | |
| 11 | abstract public function get_id(): string; |
| 12 | |
| 13 | abstract public function get_label(): string; |
| 14 | |
| 15 | public function get_control_label(): string { |
| 16 | return __( 'Symbols', 'jet-form-builder' ); |
| 17 | } |
| 18 | |
| 19 | public function to_array(): array { |
| 20 | return array( |
| 21 | 'value' => $this->get_id(), |
| 22 | 'label' => $this->get_label(), |
| 23 | 'control_label' => $this->get_control_label(), |
| 24 | ); |
| 25 | } |
| 26 | |
| 27 | } |