\donbidon\Core\RegistryI_Registry

Registry interface.

Summary

Methods
Constants
set()
exists()
isEmpty()
get()
delete()
newFromKey()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

set()

set(string  $key, mixed  $value) : void

Sets scope value.

Parameters

string $key
mixed $value

exists()

exists(string  $key) : boolean

Returns true if scope exists, false otherwise.

Parameters

string $key

Returns

boolean

isEmpty()

isEmpty(string  $key) : boolean

Returns true if scope value is empty, false otherwise.

Parameters

string $key

Returns

boolean

get()

get(string  $key = null, mixed  $default = null, boolean  $throw = true) : mixed

Returns scope value.

Parameters

string $key

If not passed, whole scope will be returned

mixed $default
boolean $throw

Throw exception if no default value passed and key doesn't exist

Returns

mixed

delete()

delete(string  $key) : void

Deletes scope key.

Parameters

string $key

newFromKey()

newFromKey(string  $key) : static

Returns new registry from value of key.

Parameters

string $key

Returns

static