lithium\data\Collection::__construct PHP Method

__construct() public method

Constructor.
See also: lithium\data\Collection::$_data
See also: lithium\data\Collection::$_model
public __construct ( array $config = [] ) : void
$config array Available configuration options are: - `'data'` _array_ - `'model'` _string|null_
return void
    public function __construct(array $config = array())
    {
        $defaults = array('data' => array(), 'model' => null);
        parent::__construct($config + $defaults);
    }