Interface

TRex\Core\IDynamicObject

interface IDynamicObject

Describes an object with dynamic attributes.

Methods

bool isDynamic()

Indicates whether the current object has dynamic properties access.

setDynamic(bool $isDynamic)

Sets dynamic properties access.

addMethod(string $name, Closure $method)

Adds a dynamic method to the object.

Details

at line 17
public bool isDynamic()

Indicates whether the current object has dynamic properties access.

Return Value

bool

at line 24
public setDynamic(bool $isDynamic)

Sets dynamic properties access.

Parameters

bool $isDynamic

at line 32
public addMethod(string $name, Closure $method)

Adds a dynamic method to the object.

Parameters

string $name
Closure $method