Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
plugins
/
smart-slider-3
/
Nextend
/
Framework
/
Pattern
:
SingletonTrait.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?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() { } }