Documentation

DataSchemaField
in package

Data Schema Field.

Table of Contents

Properties

$classificationValues  : array<string|int, mixed>|null
$description  : string|null
$guidelines  : string|null
$isArray  : bool
$name  : string
$nestedFields  : array<string|int, mixed>|null
$title  : string
$type  : string
$uniqueValues  : bool|null

Methods

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

Properties

$classificationValues

public array<string|int, mixed>|null $classificationValues

Allowed values when type is classification. Leave empty for other types.

$description

public string|null $description

Detailed description of what this field represents.

$guidelines

public string|null $guidelines

Optional extraction guidelines.

$isArray

public bool $isArray

Whether this field can contain multiple values.

$nestedFields

public array<string|int, mixed>|null $nestedFields

Subfields when type is nested_object. Leave empty for other types.

$title

public string $title

Display name for the field. Also impacts inference results.

$uniqueValues

public bool|null $uniqueValues

Whether to remove duplicate values in the array.

Methods

__construct()

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

Raw server response array.

__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