PHP Class Redaxscript\Singleton

Since: 2.2.0
Author: Henry Ruhs
Show file Open project: redaxmedia/redaxscript

Protected Properties

Property Type Description
$_instance array instance of the class

Public Methods

Method Description
clearInstance ( ) : object clear the instance
getInstance ( ) : object get the instance

Private Methods

Method Description
__construct ( ) constructor of the class

Method Details

clearInstance() public static method

clear the instance
Since: 3.0.0
public static clearInstance ( ) : object
return object

getInstance() public static method

get the instance
Since: 2.2.0
public static getInstance ( ) : object
return object

Property Details

$_instance protected static property

instance of the class
protected static array $_instance
return array