$instance
$instance : mixed
The single instance of the class
The SingletonTrait trait
Encapsulates all the necessary functions to implement a singleton static class.
CHANGELOG
1.0: Documented SingletonTrait - May 4th, 2013 2.0: Reproduced Singleton for Primus - April 2nd, 2015 2.0.1: Un-finalized constructor function for objects requiring public constructor 2.0.2: Used local version of RunTimeException - April 11th, 2015 3.0: formatted for inclusion in phabstractic - July 7th, 2016
instantiate() : mixed
Gets The Singular Instance of the Singleton
This can be called with an array of 'options' (those really are supplied to the given instance). If there's an attempt to 'reconfigure' the singleton instance with new options a RuntimeException is thrown.
when instance is already defined and configured when given new configuration options
The instance of the singleton class, the class itself