\BrightSingleton

Summary

Methods
Properties
Constants
getInstance()
__destroy()
No public properties found
No constants found
__construct()
$instance
N/A
__clone()
__wakeup()
No private properties found
N/A

Properties

$instance

$instance : \Bright\Singleton

Type

\Bright\Singleton — The reference to *Singleton* instance of this class

Methods

getInstance()

getInstance() : \Bright\Singleton

Returns the *Singleton* instance of this class.

Returns

\Bright\Singleton

The Singleton instance.

__destroy()

__destroy() 

__construct()

__construct() 

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

__clone()

__clone() : void

Private clone method to prevent cloning of the instance of the *Singleton* instance.

__wakeup()

__wakeup() : void

Private unserialize method to prevent unserializing of the *Singleton* instance.