File "ButtonInterface.php"

Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/ButtonInterface.php
File size: 738 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
/**
 * The interface for the button asset renderer.
 *
 * @package WooCommerce\PayPalCommerce\Button\Assets
 */

declare(strict_types=1);

namespace WooCommerce\PayPalCommerce\Button\Assets;

/**
 * Interface ButtonInterface
 */
interface ButtonInterface {

	/**
	 * Initializes the button.
	 */
	public function initialize(): void;

	/**
	 * Indicates if the button is enabled.
	 *
	 * @return bool
	 */
	public function is_enabled(): bool;

	/**
	 * Renders the necessary HTML.
	 *
	 * @return bool
	 */
	public function render(): bool;

	/**
	 * Enqueues scripts/styles.
	 */
	public function enqueue(): void;

	/**
	 * The configuration for the smart buttons.
	 *
	 * @return array
	 */
	public function script_data(): array;
}