PHP Class Crunz\Singleton

Afficher le fichier Open project: lavary/crunz

Protected Properties

Свойство Type Description
$instance Class instance

Méthodes publiques

Méthode Description
getInstance ( ) : mixed Return the instance of the class

Private Methods

Méthode 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 méthode

Return the instance of the class
public static getInstance ( ) : mixed
Résultat mixed

Property Details

$instance protected_oe static_oe property

Class instance
protected static $instance