PHP Class Redaxscript\Registry

Since: 2.1.0
Author: Gary Aylward
Inheritance: extends Singleton
Exibir arquivo Open project: redaxmedia/redaxscript Class Usage Examples

Protected Properties

Property Type Description
$_registryArray array array of the registry

Public Methods

Method Description
get ( string $key = null ) : mixed get item from registry
init ( array $registryArray = [] ) init the class
set ( string $key = null, mixed $value = null ) set item to registry

Method Details

get() public method

get item from registry
Since: 3.0.0
public get ( string $key = null ) : mixed
$key string key of the item
return mixed

init() public method

init the class
Since: 2.1.0
public init ( array $registryArray = [] )
$registryArray array array of the registry

set() public method

set item to registry
Since: 2.1.0
public set ( string $key = null, mixed $value = null )
$key string key of the item
$value mixed value of the item

Property Details

$_registryArray protected_oe static_oe property

array of the registry
protected static array $_registryArray
return array