Instanceable
in package
Allows classes to extend this to make singleton instances easily.
Tags
Table of Contents
Properties
- $_instances : array<class-string, static>
- Stores instances of classes with their class name as key.
Methods
- getInstance() : static
- Get or make an instance of the class this was called on.
Properties
$_instances
Stores instances of classes with their class name as key.
private
static array<class-string, static>
$_instances
= []
Methods
getInstance()
Get or make an instance of the class this was called on.
public
final static getInstance() : static
Return values
static —Instance of the class this was called on.