Current Path : /storage/v11800/romasitenew/public_html/wp-content/plugins/google-listings-and-ads/src/ |
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/romasitenew/public_html/wp-content/plugins/google-listings-and-ads/src/PluginFactory.php |
<?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;
}
}