lithium\data\Collection::_set()

abstract protected method

A method to be implemented by concrete Collection classes which sets data to a specified offset and wraps all data array in its appropriate object type.

Parameters

  • mixed $data

    An array or an Entity object to set.

  • mixed $offset

    The offset. If offset is null data is simply appended to the set.

  • array $options

    Any additional options to pass to the Entity's constructor.

Returns

object

Returns the inserted Record, Document object or other Entity object.

Source

	abstract protected function _set($data = null, $offset = null, $options = []);