vendor/cakephp/cakephp/src/Collectionfunctions.php

CakePHP(tm) : Rapid Development Framework (https://cakephp.org) Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)

Licensed under The MIT License For full copyright and license information, please see the LICENSE.txt Redistributions of files must retain the above copyright notice.

Functions

collection()

collection(\Traversable|array  $items) : \Cake\Collection\Collection

Returns a new Cake\Collection\Collection object wrapping the passed argument.

Parameters

\Traversable|array $items

The items from which the collection will be built.

Returns

\Cake\Collection\Collection