lithium\util\Collection::offsetSet()

public method

Assigns a value to the specified offset.

Parameters

  • string $offset

    The offset to assign the value to.

  • mixed $value

    The value to set.

Returns

mixed

The value which was set.

Source

	public function offsetSet($offset, $value) {
		if ($offset === null) {
			return $this->_data[] = $value;
		}
		return $this->_data[$offset] = $value;
	}