File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/trait-yith-wcwl-singleton-trait.php.tar
wp-content/plugins/yith-woocommerce-wishlist/includes/traits/trait-yith-wcwl-singleton-trait.php 0000644 00000001223 15154631567 0037602 0 ustar 00 var/www/vhosts/uyarreklam.com.tr/httpdocs <?php
/**
* Singleton class trait.
*
* @package YITH\Wishlist\Traits
*/
defined( 'YITH_WCWL' ) || exit; // Exit if accessed directly
/**
* Singleton trait.
*/
trait YITH_WCWL_Singleton_Trait {
/**
* The single instance of the class.
*
* @var self
*/
protected static $instance = null;
/**
* Constructor
*
* @return void
*/
protected function __construct() {
}
/**
* Get class instance.
*
* @return self
*/
final public static function get_instance() {
return ! is_null( static::$instance ) ? static::$instance : static::$instance = new static();
}
/**
* Prevent cloning.
*/
private function __clone() {
}
}