SingletonTrait
Singleton trait.
Table of Contents
- $instance : object
- The single instance of the class.
- __wakeup() : mixed
- Prevent unserializing.
- instance() : object
- Get class instance.
- __construct() : void
- Constructor
- __clone() : mixed
- Prevent cloning.
Properties
$instance
The single instance of the class.
protected
static object
$instance
= null
Methods
__wakeup()
Prevent unserializing.
public
final __wakeup() : mixed
Return values
mixed —instance()
Get class instance.
public
final static instance() : object
Return values
object —Instance.
__construct()
Constructor
protected
__construct() : void
Return values
void —__clone()
Prevent cloning.
private
__clone() : mixed