Documentation

ModelInterface

Table of Contents

mapFrom()  : array<string|int, mixed>
toArray()  : array<string|int, mixed>
toJson()  : string
toObject()  : object

Methods

mapFrom()

public mapFrom() : array<string|int, mixed>
Tags
description

It uses in ResourceFactory for call contract functions Format: 'model_variable_name' => 'contract_function_name'

Return values
array<string|int, mixed>

toArray()

public toArray() : array<string|int, mixed>
Tags
description

Convert model to array

Return values
array<string|int, mixed>

toJson()

public toJson() : string
Tags
description

Convert model to json

Return values
string

toObject()

public toObject() : object
Tags
description

Convert model to object

Return values
object

Search results