File "Renderable.php"
Full Path: /home/warrior1/public_html/wp-content/plugins/google-listings-and-ads/src/Infrastructure/Renderable.php
File size: 637 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
declare( strict_types=1 );
namespace Automattic\WooCommerce\GoogleListingsAndAds\Infrastructure;
defined( 'ABSPATH' ) || exit;
/**
* Interface Renderable
*
* Used to designate an object that can be rendered (e.g. views, blocks, shortcodes, etc.).
*
* @package Automattic\WooCommerce\GoogleListingsAndAds\Infrastructure
*/
interface Renderable {
/**
* Render the renderable.
*
* @param array $context Optional. Contextual information to use while
* rendering. Defaults to an empty array.
*
* @return string Rendered result.
*/
public function render( array $context = [] ): string;
}