abstract class Singleton

Abstract class implementing a singleton

Properties

static private $instances

Methods

static Singleton
GetInstance()

Get the instance of the singleton

__construct()

Construct the singleton for use.

Details

at line 21
static Singleton GetInstance()

Get the instance of the singleton

Return Value

Singleton

Exceptions

MissingSingletonException

if not yet constructed

at line 35
__construct()

Construct the singleton for use.

This can be overriden if it requires more arguments

Exceptions

DuplicateSingletonException

if already constructed