\TriTan\TraitsSingletonTrait

Summary

Methods
Properties
Constants
getInstance()
__construct()
__clone()
__wakeup()
unserialize()
No public properties found
No constants found
No protected methods found
$instance
N/A
No private methods found
No private properties found
N/A

Properties

$instance

$instance : self

Type

self — The stored singleton instance

Methods

getInstance()

getInstance() : self

Creates the original or retrieves the stored singleton instance

Returns

self

__construct()

__construct() 

The constructor is disabled

Throws

\RuntimeException

if called

__clone()

__clone() 

Cloning is disabled

Throws

\RuntimeException

if called

__wakeup()

__wakeup() 

Unserialization is disabled

Throws

\RuntimeException

if called

unserialize()

unserialize(  $serialized_data) 

Unserialization is disabled

Parameters

$serialized_data

Throws

\RuntimeException

if called