style-block-it.php
48 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace JFB_Compatibility\Jet_Style_Manager\Blocks\Interfaces; |
| 5 | |
| 6 | use JFB_Components\Repository\Repository_Item_Instance_Trait; |
| 7 | use JET_SM\Gutenberg\Controls_Manager; |
| 8 | |
| 9 | // If this file is called directly, abort. |
| 10 | if ( ! defined( 'WPINC' ) ) { |
| 11 | die; |
| 12 | } |
| 13 | |
| 14 | interface Style_Block_It extends Repository_Item_Instance_Trait { |
| 15 | |
| 16 | public function get_manager(): Controls_Manager; |
| 17 | |
| 18 | public function set_manager( Controls_Manager $manager ); |
| 19 | |
| 20 | public function process_controls(); |
| 21 | |
| 22 | public function selector( $selector = '' ): string; |
| 23 | |
| 24 | public function has_css_selector( string $name ): bool; |
| 25 | |
| 26 | public function get_css_selector( string $name ): string; |
| 27 | |
| 28 | public function set_css_selector( string $name, string $selector ); |
| 29 | |
| 30 | /** |
| 31 | * @param string[] $css_scheme |
| 32 | */ |
| 33 | public function set_css_scheme( array $css_scheme ); |
| 34 | |
| 35 | /** |
| 36 | * @return string[] |
| 37 | */ |
| 38 | public function get_css_scheme(): array; |
| 39 | |
| 40 | /** |
| 41 | * @return string |
| 42 | */ |
| 43 | public function get_namespace(): string; |
| 44 | |
| 45 | public function set_namespace( string $namespace_selector ); |
| 46 | |
| 47 | } |
| 48 |