File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/PluginFactory.php.tar
vhosts/uyarreklam.com.tr/httpdocs/wp-content/plugins/google-listings-and-ads/src/PluginFactory.php 0000644 00000001246 15154421573 0031126 0 ustar 00 var/www <?php
declare( strict_types=1 );
namespace Automattic\WooCommerce\GoogleListingsAndAds;
use Automattic\WooCommerce\GoogleListingsAndAds\Infrastructure\GoogleListingsAndAdsPlugin;
/**
* PluginFactory class.
*
* This is responsible for instantiating a Plugin object and returning the same object.
*
* @package Automattic\WooCommerce\GoogleListingsAndAds
*/
final class PluginFactory {
/**
* Get the instance of the Plugin object.
*
* @return GoogleListingsAndAdsPlugin
*/
public static function instance() {
static $plugin = null;
if ( null === $plugin ) {
$plugin = new GoogleListingsAndAdsPlugin( woogle_get_container() );
}
return $plugin;
}
}