Documentation

Singleton
in package

Singleton class

Table of Contents

$instances  : array<string, object>
Created instances of different objects
__clone()  : mixed
Cloner
__construct()  : mixed
Constructor
destroy()  : void
Destroy object
getInstance()  : object
Function returns instance of the object

Properties

$instances

Created instances of different objects

private static array<string, object> $instances

Methods

__clone()

Cloner

public __clone() : mixed
Return values
mixed

__construct()

Constructor

public __construct() : mixed
Return values
mixed

destroy()

Destroy object

public destroy() : void
Return values
void

getInstance()

Function returns instance of the object

public static getInstance() : object
Return values
object

stored object

Search results