woocommerce-paypal-payments/modules/ppcp-button/src/Assets/DisabledSmartButton.php
2023-02-15 16:03:49 +02:00

57 lines
911 B
PHP

<?php
/**
* If we can't render our buttons, this Null object will be used.
*
* @package WooCommerce\PayPalCommerce\Button\Assets
*/
declare(strict_types=1);
namespace WooCommerce\PayPalCommerce\Button\Assets;
/**
* Class DisabledSmartButton
*/
class DisabledSmartButton implements SmartButtonInterface {
/**
* Renders the necessary HTML.
*
* @return bool
*/
public function render_wrapper(): bool {
return true;
}
/**
* Whether the scripts should be loaded.
*/
public function should_load(): bool {
return false;
}
/**
* Enqueues necessary scripts.
*/
public function enqueue(): void {
}
/**
* Whether tokens can be stored or not.
*
* @return bool
*/
public function can_save_vault_token(): bool {
return false;
}
/**
* The configuration for the smart buttons.
*
* @return array
*/
public function script_data(): array {
return array();
}
}