\Phabstractic\Patterns\ResourceSingletonInterface

Singleton Interface

This provides more a way to identify a singleton than to offer any increased functionality.

CHANGELOG

1.0 created Singleton Interface - May 27th, 2013 2.0 refactored for Primus library - April 3rd, 2015 3.0 formatted for inclusion in the final phabstractic library - July 7th, 2016

Summary

Methods
Constants
hardened()
instantiate()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

hardened()

hardened() : boolean

Tests If Singleton Is Instantiated

Returns

boolean —

Instantiated?

instantiate()

instantiate() : mixed

(Creates) Returns The Instance Of The Singleton

Returns

mixed —

The singleton itself