final class Registry (View source)

All methods of \Yaf\Registry declared as static, making it universally accessible. This provides the ability to get or set any custom data from anyway in your code as necessary.

Properties

static protected Registry $_instance
protected array $_entries

Methods

static mixed
get(string $name)

Retrieve an item from registry

static bool
has(string $name)

Check whether an item exists

static bool
set(string $name, mixed $value)

No description

static void|bool
del(string $name)

No description

Details

static mixed get(string $name)

Retrieve an item from registry

Parameters

string $name

Return Value

mixed

static bool has(string $name)

Check whether an item exists

Parameters

string $name

Return Value

bool

static bool set(string $name, mixed $value)

No description

Parameters

string $name
mixed $value

Return Value

bool

static void|bool del(string $name)

No description

Parameters

string $name

Return Value

void|bool