\rex_singleton_trait

Trait for singletons.

Summary

Methods
Properties
Constants
getInstance()
__clone()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getInstance()

getInstance() : static

Returns the singleton instance.

Returns

static —

__clone()

__clone() : mixed

Cloning a singleton is not allowed.

Throws

\BadMethodCallException

Returns

mixed —