lithium\data\Collection::_set()
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
$dataAn array or an
Entityobject to set. -
mixed
$offsetThe offset. If offset is
nulldata is simply appended to the set. -
array
$optionsAny additional options to pass to the
Entity's constructor.
Returns
objectReturns the inserted Record, Document object or other Entity object.
Source
abstract protected function _set($data = null, $offset = null, $options = []);