index.php
2 years ago
interface-ad-type.php
1 year ago
interface-ad.php
1 year ago
interface-entity.php
5 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-group-type.php
61 lines
| 1 | <?php |
| 2 | /** |
| 3 | * This interface defines a contract for implementing different group types within plugin. |
| 4 | * |
| 5 | * @package AdvancedAds |
| 6 | * @author Advanced Ads <info@wpadvancedads.com> |
| 7 | * @since 1.47.0 |
| 8 | */ |
| 9 | |
| 10 | namespace AdvancedAds\Interfaces; |
| 11 | |
| 12 | defined( 'ABSPATH' ) || exit; |
| 13 | |
| 14 | /** |
| 15 | * Interface for Group Type. |
| 16 | */ |
| 17 | interface Group_Type { |
| 18 | |
| 19 | /** |
| 20 | * Get the unique identifier (ID) of the group type. |
| 21 | * |
| 22 | * @return string The unique ID of the group type. |
| 23 | */ |
| 24 | public function get_id(): string; |
| 25 | |
| 26 | /** |
| 27 | * Get the title or name of the group type. |
| 28 | * |
| 29 | * @return string The title of the group type. |
| 30 | */ |
| 31 | public function get_title(): string; |
| 32 | |
| 33 | /** |
| 34 | * Get a description of the group type. |
| 35 | * |
| 36 | * @return string The description of the group type. |
| 37 | */ |
| 38 | public function get_description(): string; |
| 39 | |
| 40 | /** |
| 41 | * Check if this group type requires premium. |
| 42 | * |
| 43 | * @return bool True if premium is required; otherwise, false. |
| 44 | */ |
| 45 | public function is_premium(): bool; |
| 46 | |
| 47 | /** |
| 48 | * Get the URL for upgrading to this group type. |
| 49 | * |
| 50 | * @return string The upgrade URL for the group type. |
| 51 | */ |
| 52 | public function get_image(): string; |
| 53 | |
| 54 | /** |
| 55 | * Get the class name of the object as a string. |
| 56 | * |
| 57 | * @return string |
| 58 | */ |
| 59 | public function get_classname(): string; |
| 60 | } |
| 61 |