lithium\data\Collection::_set PHP Method

_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.
See also: lithium\data\Collection::_populate()
See also: lithium\data\Collection::offsetSet()
abstract protected _set ( mixed $data = null, mixed $offset = null, array $options = [] ) : object
$data mixed An array or an `Entity` object to set.
$offset mixed The offset. If offset is `null` data is simply appended to the set.
$options array Any additional options to pass to the `Entity`'s constructor.
return object Returns the inserted `Record`, `Document` object or other `Entity` object.
    protected abstract function _set($data = null, $offset = null, $options = array());