Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | /** |
| 3 | * Required settings for the plugin. |
| 4 | * |
| 5 | * @package brianhenryie/bh-wp-bitcoin-gateway |
| 6 | */ |
| 7 | |
| 8 | namespace BrianHenryIE\WP_Bitcoin_Gateway; |
| 9 | |
| 10 | /** |
| 11 | * Typed settings, presumably saved in `wp_options`. |
| 12 | */ |
| 13 | interface Settings_Interface { |
| 14 | |
| 15 | /** |
| 16 | * Needed to add links on plugins.php. |
| 17 | */ |
| 18 | public function get_plugin_basename(): string; |
| 19 | |
| 20 | /** |
| 21 | * Semver plugin version for caching of js + css. |
| 22 | * Version compare during upgrade. |
| 23 | */ |
| 24 | public function get_plugin_version(): string; |
| 25 | |
| 26 | /** |
| 27 | * The URL to the plugin folder. |
| 28 | * E.g. `https://example.org/wp-content/plugins/bh-wp-bitcoin-gateway/`. |
| 29 | * |
| 30 | * Has trailing slash. |
| 31 | */ |
| 32 | public function get_plugin_url(): string; |
| 33 | |
| 34 | /** |
| 35 | * Get the xpub/ypub/zpub of the gateway. |
| 36 | * |
| 37 | * @param string $gateway_id Optionally specify the gateway id if there are multiple instances. |
| 38 | */ |
| 39 | public function get_master_public_key( string $gateway_id = 'bitcoin_gateway' ): string; |
| 40 | |
| 41 | /** |
| 42 | * Get the absolute path to the plugin root on the server filesystem, with trailingslash. |
| 43 | */ |
| 44 | public function get_plugin_dir(): string; |
| 45 | } |