option-query-it.php
46 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace JFB_Modules\Option_Query\Interfaces; |
| 5 | |
| 6 | // If this file is called directly, abort. |
| 7 | if ( ! defined( 'WPINC' ) ) { |
| 8 | die; |
| 9 | } |
| 10 | |
| 11 | use JFB_Components\Repository\Repository_Item_Instance_Trait; |
| 12 | |
| 13 | interface Option_Query_It extends Repository_Item_Instance_Trait { |
| 14 | |
| 15 | public function set_setting( string $name, $value ); |
| 16 | |
| 17 | public function get_setting( string $name ); |
| 18 | |
| 19 | public function has_setting( string $name ): bool; |
| 20 | |
| 21 | public function set_settings( array $settings ); |
| 22 | |
| 23 | public function get_settings(): array; |
| 24 | |
| 25 | public function set_query( string $name, $value ); |
| 26 | |
| 27 | public function get_query( string $name ); |
| 28 | |
| 29 | public function has_query( string $name ): bool; |
| 30 | |
| 31 | public function delete_query( string $name ); |
| 32 | |
| 33 | public function set_query_params( array $params ); |
| 34 | |
| 35 | public function get_query_params(): array; |
| 36 | |
| 37 | public function fetch(): \Generator; |
| 38 | |
| 39 | public function is_support_feature( string $feature_name ): bool; |
| 40 | |
| 41 | public function disable_feature( string $feature_name ); |
| 42 | |
| 43 | public function enable_feature( string $feature_name ); |
| 44 | |
| 45 | } |
| 46 |