
<center><h2><strong>Ubuntu</strong></h2>
­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
<?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;
	}
}
