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-entity.php
40 lines
| 1 | <?php |
| 2 | /** |
| 3 | * The interface to provide a contract for Entities. |
| 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 Entity. |
| 16 | */ |
| 17 | interface Entity_Interface { |
| 18 | |
| 19 | /** |
| 20 | * Prepare frontend output. |
| 21 | * |
| 22 | * @return string |
| 23 | */ |
| 24 | public function generate_html(): string; |
| 25 | |
| 26 | /** |
| 27 | * Get the wrapper attributes. |
| 28 | * |
| 29 | * @return array |
| 30 | */ |
| 31 | public function get_wrapper_attributes(): array; |
| 32 | |
| 33 | /** |
| 34 | * Prepare output. |
| 35 | * |
| 36 | * @return string |
| 37 | */ |
| 38 | public function prepare_output(): string; |
| 39 | } |
| 40 |