base-constant.php
2 years ago
constants-manager.php
2 years ago
site-name-constant.php
2 years ago
site-url-constant.php
2 years ago
base-constant.php
24 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace Jet_Form_Builder\Classes\Macro_Constants; |
| 5 | |
| 6 | use JFB_Components\Repository\Repository_Item_Instance_Trait; |
| 7 | |
| 8 | // If this file is called directly, abort. |
| 9 | if ( ! defined( 'WPINC' ) ) { |
| 10 | die; |
| 11 | } |
| 12 | |
| 13 | abstract class Base_Constant implements Repository_Item_Instance_Trait { |
| 14 | |
| 15 | abstract public function get_id(): string; |
| 16 | |
| 17 | abstract public function get_value(): string; |
| 18 | |
| 19 | public function rep_item_id() { |
| 20 | return $this->get_id(); |
| 21 | } |
| 22 | |
| 23 | } |
| 24 |