DocumentsControllerLastTrait uses \oihana\controllers\traits\CheckOwnerArgumentsTrait, \oihana\models\traits\ModelTrait, \oihana\controllers\traits\OutputDocumentsTrait, \oihana\controllers\traits\prepare\PrepareBench, \oihana\controllers\traits\PrepareParamTrait, \oihana\controllers\traits\StatusTrait
Table of Contents
Methods
- last() : mixed
- Returns the last document modified or with a specific date property in the collection.
Methods
last()
Returns the last document modified or with a specific date property in the collection.
public
last([ServerRequestInterface|null $request = null ][, ResponseInterface|null $response = null ][, array<string|int, mixed> $args = [] ][, array<string|int, mixed> $init = [] ]) : mixed
Parameters
- $request : ServerRequestInterface|null = null
- $response : ResponseInterface|null = null
- $args : array<string|int, mixed> = []
-
An associative array that contains values for the current route’s named placeholders.
- $init : array<string|int, mixed> = []
-
An optional associative array to initialize the method.