DataSchemaReplace
in package
implements
Stringable
The structure to completely replace the data schema of the model.
Table of Contents
Interfaces
- Stringable
Properties
- $fields : array<string|int, DataSchemaField>
Methods
- __construct() : mixed
- __toString() : string
- toJson() : array<string, int|float|string|bool|null|array<string|int, mixed>>
Properties
$fields
public
array<string|int, DataSchemaField>
$fields
Fields to replace in the data schema.
Methods
__construct()
public
__construct(array<string, int|float|string|bool|null|array<string|int, mixed>> $rawResponse) : mixed
Parameters
- $rawResponse : array<string, int|float|string|bool|null|array<string|int, mixed>>
-
Raw server response array.
Tags
__toString()
public
__toString() : string
Return values
string —String representation.
toJson()
public
toJson() : array<string, int|float|string|bool|null|array<string|int, mixed>>
Return values
array<string, int|float|string|bool|null|array<string|int, mixed>> —JSON representation.