ModelInterface

The Model interface defines required methods for models to work.

 interface Winter\Storm\Database\ModelInterface

At the moment, this only restricts the signature for the constructor to only allow attributes as a parameter, in order to allow several static calls to work within the model architecture, but still allow models to extend the constructor if they wish.

Methods

public __construct (array $attributes = [])

Create a new model instance.

Parameters
Property Description
$attributes
array

A list of attributes to populate in the model.

Returns
mixed
Copyright © 2024 Winter CMS