mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
57 lines
911 B
PHP
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();
|
|
}
|
|
}
|