\lloc\MslsMslsRegistry

Registry instead of singletons

Summary

Methods
Properties
Constants
instance()
get_object()
set_object()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
__construct()
__clone()
get()
set()
$arr
$instance
N/A

Properties

$arr

$arr : array

Generic container

Type

array

Methods

get_object()

get_object(string  $key) : mixed

Static get_object calls get

Parameters

string $key

Returns

mixed

set_object()

set_object(string  $key, mixed  $instance) 

Static set_object calls set

Parameters

string $key
mixed $instance

__construct()

__construct() 

Constructor

Don't call me directly!

__clone()

__clone() 

Clone

Don't call me directly!

get()

get(string  $key) : mixed

Get an object by key

Parameters

string $key

Returns

mixed

set()

set(string  $key, mixed  $instance) 

Set an object

Parameters

string $key
mixed $instance