← All changes
|
vendor-prefixed/src/License/Contracts/LicenseConfigAdapter.php
+7
-8
4.4.2
→
4.4.6
View file →
| @@ -7,9 +7,8 @@ | ||
| 7 | 7 | * Per-plugin configuration for the license subsystem. |
| 8 | 8 | * Extends PluginMenuAdapter — pro plugins implement this single interface. |
| 9 | 9 | * |
| 10 | 10 | * APPEND-ONLY — adding methods requires a MAJOR version bump per CONTRIBUTING.md. |
| 11 | - * @internal | |
| 12 | 11 | */ |
| 13 | 12 | interface LicenseConfigAdapter extends PluginMenuAdapter |
| 14 | 13 | { |
| 15 | 14 | /** |
| @@ -22,31 +21,31 @@ | ||
| 22 | 21 | * - yay_swatches (same underscore pattern) |
| 23 | 22 | * |
| 24 | 23 | * Option keys derived: {slug}_license_key, {slug}_license_info |
| 25 | 24 | */ |
| 26 | - public function get_plugin_slug() : string; | |
| 25 | + public function get_plugin_slug(): string; | |
| 27 | 26 | /** |
| 28 | 27 | * Human-readable display name for the license card, |
| 29 | 28 | * e.g. 'YayMail Pro – WooCommerce Email Customizer'. |
| 30 | 29 | */ |
| 31 | - public function get_plugin_name() : string; | |
| 30 | + public function get_plugin_name(): string; | |
| 32 | 31 | /** |
| 33 | 32 | * Current plugin version string, e.g. '4.4'. |
| 34 | 33 | */ |
| 35 | - public function get_plugin_version() : string; | |
| 34 | + public function get_plugin_version(): string; | |
| 36 | 35 | /** |
| 37 | 36 | * Absolute path to the main plugin file. |
| 38 | 37 | */ |
| 39 | - public function get_plugin_file() : string; | |
| 38 | + public function get_plugin_file(): string; | |
| 40 | 39 | /** |
| 41 | 40 | * EDD download ID (numeric). |
| 42 | 41 | */ |
| 43 | - public function get_item_id() : int; | |
| 42 | + public function get_item_id(): int; | |
| 44 | 43 | /** |
| 45 | 44 | * EDD store URL. Default: 'https://yaycommerce.com/'. |
| 46 | 45 | */ |
| 47 | - public function get_store_url() : string; | |
| 46 | + public function get_store_url(): string; | |
| 48 | 47 | /** |
| 49 | 48 | * Product page URL used for "Buy a license" CTA. |
| 50 | 49 | */ |
| 51 | - public function get_store_link() : string; | |
| 50 | + public function get_store_link(): string; | |
| 52 | 51 | } |