Documentation

DataSchemaReplace
in package

The structure to completely replace the data schema of the model.

Table of Contents

Properties

$fields  : array<string|int, DataSchemaField>

Methods

__construct()  : mixed
__toString()  : string
toJson()  : array<string|int, mixed>

Properties

Methods

__construct()

public __construct(array<string|int, mixed> $serverResponse) : mixed
Parameters
$serverResponse : array<string|int, mixed>

Raw server response array.

Tags
throws
InvalidArgumentException

Throws if the fields array is empty or the Data schema is incorrect.

__toString()

public __toString() : string
Return values
string

String representation.

toJson()

public toJson() : array<string|int, mixed>
Return values
array<string|int, mixed>

JSON representation.


        
On this page

Search results