Your IP : 216.73.216.85


Current Path : /home/smartconb/www/armencom33/libraries/smartslider3/src/Framework/Pattern/
Upload File :
Current File : /home/smartconb/www/armencom33/libraries/smartslider3/src/Framework/Pattern/SingletonTrait.php

<?php


namespace Nextend\Framework\Pattern;


trait SingletonTrait {

    protected static $instance;

    final public static function getInstance() {
        return isset(static::$instance) ? static::$instance : static::$instance = new static;
    }

    private function __construct() {
        $this->init();
    }

    protected function init() {
    }

    final public function __wakeup() {
    }

    final public function __clone() {
    }
}