# wk-google-analytics/trunk/lib/PluginFactory.php

WEBKINDER Integration for Google Analytics and Google Tag Manager, version trunk. 20 lines.

- Page: https://pluginprobe.com/plugins/wk-google-analytics/trunk/code/lib/PluginFactory.php
- Raw: https://pluginprobe.com/plugins/wk-google-analytics/trunk/raw/lib/PluginFactory.php
- Modified: 2020-02-04T13:02:28+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wk-google-analytics/trunk/code/lib/PluginFactory.php#L10-L20`.

```php
<?php

namespace WebKinder\GoogleAnalytics;

final class PluginFactory
{

    // Create and return instance of Plugin if it passes all checks
    public static function create()
    {
		static $plugin = null;

		if ($plugin === null) {
			$plugin = new Plugin();
		}

		return $plugin;
    }
}

```
