protected setResultCollection ( array &$results, array &$collections, $properties ) | ||
$results | array | |
$collections | array |
protected function setResultCollection(&$results, &$collections, $properties)
{
if (is_array($results) || $results instanceof \ArrayAccess) {
for ($i = 0, $k = count($results); $i < $k; $i++) {
$this->setObjectProperty($results[$i], $properties, $collections);
}
} else {
$this->setObjectProperty($results, $properties, $collections);
}
}