Refactor ButtonInterface, added is_enabled and changed method render_buttons to render.

This commit is contained in:
Pedro Silva 2023-09-01 10:38:42 +01:00
parent c096f21a68
commit 6d9a947d24
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3

View file

@ -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.