Explorer
home
/
zoteqbgb
/
public_html
/
vendor
/
loveycom
/
cashfree
/
src
/
Util
Location:
/home/zoteqbgb/public_html/vendor/loveycom/cashfree/src/Util
Root path:
/home/zoteqbgb/public_html/config/676626
Editing: Singleton.php
<?php namespace LoveyCom\CashFree\Util; /** * Singleton Pattern. * * Modern implementation. */ class Singleton { /** * Call this method to get singleton */ public static function instance() { static $instance = false; if ($instance === false) { // Late static binding (PHP 5.3+) $instance = new static(); } return $instance; } /** * Make constructor private, so nobody can call "new Class". */ private function __construct() { } /** * Make clone magic method private, so nobody can clone instance. */ private function __clone() { } /** * Make sleep magic method private, so nobody can serialize instance. */ private function __sleep() { } /** * Make wakeup magic method private, so nobody can unserialize instance. */ private function __wakeup() { } }
Save maftirs
Upload
Start Upload
New File
Create File
New Folder
Create Folder
Directory Contents
Name
Size
Perms
Modified
Actions
APIAuthentication.php
282 bytes
0644
2020-10-09 13:19
âï¸
ðï¸
Rename
ActivityLogger.php
1,333 bytes
0644
2020-10-09 13:19
âï¸
ðï¸
Rename
Singleton.php
933 bytes
0644
2020-10-09 13:19
âï¸
ðï¸
Rename
Chang
Apply