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 26
void
offsetSet(string|int $name, T $component)
Adds the component to the container.
at line 39
IComponent
offsetGet(string|int $name)
Returns component specified by name. Throws exception if component doesn't exist.
at line 50
bool
offsetExists(string|int $name)
Does component specified by name exists?
at line 61
void
offsetUnset(string|int $name)
Removes component from the container.