\donbidon\Core\EventArgs

Event arguments.

Summary

Methods
Properties
Constants
__construct()
set()
exists()
isEmpty()
get()
delete()
newFromKey()
No public properties found
No constants found
No protected methods found
$scope
N/A
No private methods found
No private properties found
N/A

Properties

$scope

$scope : array

Scope of arguments

Type

array

Methods

__construct()

__construct(array  $scope = array()) 

Constructor.

Parameters

array $scope

Initial arguments

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 = false) : mixed

Returns scope value.

Parameters

string $key

If not passed, all arguments will be returned

mixed $default
boolean $throw

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

Throws

\RuntimeException

If 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