PluginProbe
MailerLite – WooCommerce integration / 2.0
MailerLite – WooCommerce integration v2.0
3.1.25 3.1.26 3.1.24 3.1.23 3.1.22 3.1.21 3.1.20 3.1.19 3.1.18 3.1.17 3.1.16 3.1.15 1.8.7 1.8.8 2.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 All 147 releases
woo-mailerlite / includes / classes / Singleton.php

Singleton.php in MailerLite – WooCommerce integration 2.0, at includes/classes/Singleton.php

34 lines 541 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace MailerLite\Includes\Classes;
4
5 abstract class Singleton
6 {
7
8 /**
9 * Class instance
10 * @var $instance
11 */
12 protected static $instance;
13
14 private function __construct()
15 {
16 }
17
18 /**
19 * Get the instance of the class
20 * @return mixed
21 */
22 public static function getInstance()
23 {
24 if ( ! static::$instance instanceof static) {
25 static::$instance = new static();
26 }
27
28 return static::$instance;
29 }
30
31 final protected function __clone()
32 {
33 }
34 }