Current Path : /storage/v11800/newruvamithai/public_html/wp-content/plugins/google-listings-and-ads/src/Infrastructure/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/newruvamithai/public_html/wp-content/plugins/google-listings-and-ads/src/Infrastructure/Conditional.php |
<?php
declare( strict_types=1 );
namespace Automattic\WooCommerce\GoogleListingsAndAds\Infrastructure;
/**
* Conditional interface.
*
* This interface allows objects to be instantiated only as needed. A static method is used to
* determine whether an object needs to be instantiated. This prevents needless instantiation of
* objects that won't be used in the current request.
*
* @package Automattic\WooCommerce\GoogleListingsAndAds\Infrastructure
*/
interface Conditional {
/**
* Check whether this object is currently needed.
*
* @return bool Whether the object is needed.
*/
public static function is_needed(): bool;
}