Stud.IP  3.2 Revision
Singleton Class Reference
Inheritance diagram for Singleton:
Inheritance graph
Collaboration diagram for Singleton:
Collaboration graph

Static Public Member Functions

static getInstance ()
 

Protected Member Functions

 __construct ()
 

Detailed Description

Base class for singletons.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )
protected

Protected constructor to prevent creating a new instance of the Singleton via the new operator from outside of this class.

Member Function Documentation

◆ getInstance()

static getInstance ( )
static

Returns the Singleton instance of this class.

Singleton $instance The Singleton instance of this class.

Returns
Singleton The Singleton instance.

The documentation for this class was generated from the following file: