PageModel.php
69 lines
| 1 | <?php |
| 2 | |
| 3 | namespace SureCart\Support\Contracts; |
| 4 | |
| 5 | interface PageModel { |
| 6 | /** |
| 7 | * Get the page title attribute. |
| 8 | * |
| 9 | * @return string |
| 10 | */ |
| 11 | public function getPageTitleAttribute() : string; |
| 12 | |
| 13 | /** |
| 14 | * Get the page descriptoin attribute |
| 15 | * |
| 16 | * @return string |
| 17 | */ |
| 18 | public function getMetaDescriptionAttribute(): string; |
| 19 | |
| 20 | /** |
| 21 | * Get the page permalink attribute |
| 22 | * |
| 23 | * @return string |
| 24 | */ |
| 25 | public function getPermalinkAttribute(): string; |
| 26 | |
| 27 | /** |
| 28 | * Get the template id. |
| 29 | * |
| 30 | * @return string |
| 31 | */ |
| 32 | public function getTemplateIdAttribute(): string; |
| 33 | |
| 34 | /** |
| 35 | * Get the template. |
| 36 | * |
| 37 | * @return \WP_Template |
| 38 | */ |
| 39 | public function getTemplateAttribute(); |
| 40 | |
| 41 | /** |
| 42 | * Get the template id. |
| 43 | * |
| 44 | * @return string |
| 45 | */ |
| 46 | public function getTemplatePartIdAttribute(): string; |
| 47 | |
| 48 | /** |
| 49 | * Get the template part template. |
| 50 | * |
| 51 | * @return \WP_Template |
| 52 | */ |
| 53 | public function getTemplatePartAttribute(); |
| 54 | |
| 55 | /** |
| 56 | * Must return a schema array. |
| 57 | * |
| 58 | * @return array |
| 59 | */ |
| 60 | public function getJsonSchemaArray(): array; |
| 61 | |
| 62 | /** |
| 63 | * Get the content. |
| 64 | * |
| 65 | * @return string |
| 66 | */ |
| 67 | public function getTemplateContent(): string; |
| 68 | } |
| 69 |