Parent class to initiate and return singleton instances for any subclass.
.
More...
|
static | $instances = array() |
|
Parent class to initiate and return singleton instances for any subclass.
.
This documentation is written in OSOLCCC::SingletonParent under class tag
And will be shown in Main Project >> Data Structures >> Nampespace >> thisClassName
Which ever class needs to be made singleton may subclass it
- Usage:
static getInstance()
Static method facilitating Singleton Constructor.
Definition: SingletonParent.php:110
- Author
- Sreekanth Dayanand
-
Outsource Online Internet Solutions
- Version
- 0.0.1
- Date
- 2022-2032
- Precondition
- PHP 7+ is required
- If not autoloaded, Class Files must be explicitly included
- Bug:
- No bugs found till July,2022.
- Warning
To generate documentation of this class. Make sure you do the following
- Documentation for namespace Nampespace of this class should be made prior to documenting this class
- The class should be declared in lower case ie **class** and not `Class
- Copyright
- GNU Public License.
◆ getInstance()
Static method facilitating Singleton Constructor.
- Parameters
-
- Returns
- ClassInstance
- Warning
- function __construct() of subclasses should be protected
- Never call Class::getInstance() in another class's constructor, that instance will be discarded from $instances array
- Detailed Description:
- This method initiates & returns a singleton intstance of this class or any of its sub classes
The documentation for this class was generated from the following file: