lithium\util\Collection::offsetSet()
Assigns a value to the specified offset.
Parameters
-
string
$offset
The offset to assign the value to.
-
mixed
$value
The value to set.
Returns
mixedThe value which was set.
Source
public function offsetSet($offset, $value) {
if ($offset === null) {
return $this->_data[] = $value;
}
return $this->_data[$offset] = $value;
}