index.php
2 years ago
interface-ad-type.php
1 year ago
interface-ad.php
1 year ago
interface-entity.php
4 months ago
interface-group-type.php
1 year ago
interface-group.php
1 year ago
interface-importer.php
1 year ago
interface-module.php
1 year ago
interface-placement-type.php
1 year ago
interface-placement.php
1 year ago
interface-module.php
53 lines
| 1 | <?php |
| 2 | /** |
| 3 | * The interface to provide a contract for Module. |
| 4 | * |
| 5 | * @package AdvancedAds |
| 6 | * @author Advanced Ads <info@wpadvancedads.com> |
| 7 | * @since 1.48.0 |
| 8 | */ |
| 9 | |
| 10 | namespace AdvancedAds\Interfaces; |
| 11 | |
| 12 | defined( 'ABSPATH' ) || exit; |
| 13 | |
| 14 | /** |
| 15 | * Interfaces Module. |
| 16 | */ |
| 17 | interface Module_Interface { |
| 18 | /** |
| 19 | * Get the unique identifier (ID) of the module. |
| 20 | * |
| 21 | * @return string The unique ID of the module. |
| 22 | */ |
| 23 | public function get_name(): string; |
| 24 | |
| 25 | /** |
| 26 | * Get the title or name of the module. |
| 27 | * |
| 28 | * @return string The title of the module. |
| 29 | */ |
| 30 | public function get_title(): string; |
| 31 | |
| 32 | /** |
| 33 | * Get a description of the module. |
| 34 | * |
| 35 | * @return string The description of the module. |
| 36 | */ |
| 37 | public function get_description(): string; |
| 38 | |
| 39 | /** |
| 40 | * Get the URL for icon to this module. |
| 41 | * |
| 42 | * @return string The icon URL for the module. |
| 43 | */ |
| 44 | public function get_image(): string; |
| 45 | |
| 46 | /** |
| 47 | * Load the module. |
| 48 | * |
| 49 | * @return void |
| 50 | */ |
| 51 | public function load(): void; |
| 52 | } |
| 53 |