ArrayAccess
trait ArrayAccess
Implementation of \ArrayAccess for IContainer.
Methods
void
offsetSet(string|int $name, T $component)
Adds the component to the container.
offsetGet(string|int $name)
Returns component specified by name. Throws exception if component doesn't exist.
bool
offsetExists(string|int $name)
Does component specified by name exists?
void
offsetUnset(string|int $name)
Removes component from the container.
Details
at line 27
void
offsetSet(string|int $name, T $component)
Adds the component to the container.
at line 40
IComponent
offsetGet(string|int $name)
Returns component specified by name. Throws exception if component doesn't exist.
at line 51
bool
offsetExists(string|int $name)
Does component specified by name exists?
at line 62
void
offsetUnset(string|int $name)
Removes component from the container.