LastModel extends ExistModel
Returns the last document in the model (by default 'modified').
Tags
Table of Contents
Methods
- exist() : bool
- Indicates if the passed-in item exist.
- last() : mixed
- Returns a the last document in the model.
Methods
exist()
Indicates if the passed-in item exist.
public
exist([array<string|int, mixed> $init = [] ]) : bool
Parameters
- $init : array<string|int, mixed> = []
-
The optional setting definition.
Return values
bool —True of the value exist in the model.
last()
Returns a the last document in the model.
public
last([array<string|int, mixed> $init = [] ]) : mixed
Parameters
- $init : array<string|int, mixed> = []