woocommerce-paypal-payments/modules/ppcp-button/src/Assets/SmartButtonInterface.php

38 lines
636 B
PHP
Raw Normal View History

2020-08-31 11:12:46 +03:00
<?php
/**
* The interface for the smart button asset renderer.
*
2020-09-11 14:11:10 +03:00
* @package WooCommerce\PayPalCommerce\Button\Assets
2020-08-31 11:12:46 +03:00
*/
declare(strict_types=1);
2020-09-11 14:11:10 +03:00
namespace WooCommerce\PayPalCommerce\Button\Assets;
2020-08-31 11:12:46 +03:00
/**
* Interface SmartButtonInterface
*/
interface SmartButtonInterface {
/**
* Renders the necessary HTML.
*
* @return bool
*/
public function render_wrapper(): bool;
/**
* Enqueues the necessary scripts.
*
* @return bool
*/
public function enqueue(): bool;
/**
* Whether the running installation could save vault tokens or not.
*
* @return bool
*/
public function can_save_vault_token(): bool;
}