PHP Class Crunz\Singleton

Datei anzeigen Open project: lavary/crunz

Protected Properties

Property Type Description
$instance Class instance

Public Methods

Method Description
getInstance ( ) : mixed Return the instance of the class

Private Methods

Method Description
__clone ( ) : void Private clone method to prevent cloning of the instance of the Singleton instance.
__wakeup ( ) : void Private unserialize method to prevent unserializing of the *Singleton* instance.

Method Details

getInstance() public static method

Return the instance of the class
public static getInstance ( ) : mixed
return mixed

Property Details

$instance protected_oe static_oe property

Class instance
protected static $instance