ModelWrapper

Namespace

IO\Models

Extends
Implements
Constants
Type Name Value Description

string

CREATED_AT

'created_at'

string

UPDATED_AT

'updated_at'

Methods
public static wrap($original, $args):mixed
Parameters

Type

Name

Description

mixed

$original

array

$args

public static wrapList($elements, $args):array
Parameters

Type

Name

Description

array | Collection

$elements

array

$args

public static wrapPaginated($paginated, $args): PaginatedResult
Parameters

Type

Name

Description

PaginatedResult

$paginated

array

$args