Singleton
The singleton trait
Table of Contents
- $instance : object
- The only instance of using class
- getinstance() : object
- Checks, instantiates and returns the only instance of the using class.
Properties
$instance
The only instance of using class
protected
static object
$instance
= NULL
Methods
getinstance()
Checks, instantiates and returns the only instance of the using class.
public
static getinstance() : object