Documentation

Instanceable
in package

Allows classes to extend this to make singleton instances easily.

Tags
author

Aberdeener

version
2.0.0-pr13
license

MIT

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.


        
On this page

Search results