This commit is contained in:
apuc committed 2024-05-20 15:37:46 +03:00
commit 00b7dbd0b7
10404 files changed
+3285853

No files matched your search

@@ -0,0 +1,27 @@
<?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() {
}
}