mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 14:57:26 +08:00
Refactor ButtonInterface, added is_enabled and changed method render_buttons to render.
This commit is contained in:
parent
c096f21a68
commit
6d9a947d24
1 changed files with 8 additions and 1 deletions
|
@ -14,12 +14,19 @@ namespace WooCommerce\PayPalCommerce\Button\Assets;
|
|||
*/
|
||||
interface ButtonInterface {
|
||||
|
||||
/**
|
||||
* Indicates if the button is enabled.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function is_enabled(): bool;
|
||||
|
||||
/**
|
||||
* Renders the necessary HTML.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function render_buttons(): bool;
|
||||
public function render(): bool;
|
||||
|
||||
/**
|
||||
* Enqueues scripts/styles.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue