Documentation

AnnotatedSimpleField extends AnnotatedBaseField
in package

A SimpleField with additional configuration for annotation.

Table of Contents

Properties

$guidelines  : string|null
$selected  : bool
$value  : string|float|bool|null

Methods

__construct()  : mixed
createField()  : AnnotatedSimpleField|AnnotatedObjectField|AnnotatedListField
fromArray()  : self
toArray()  : array<string, mixed>

Properties

$guidelines

public string|null $guidelines

Guidelines or instructions for processing this field.

$selected

public bool $selected

When true, use the RAG information for the final result. When false, use the Data Schema information.

$value

public string|float|bool|null $value

Field value, one of: string, bool, float, null.

Methods

__construct()

public __construct(bool $selected, string|null $guidelines, string|float|bool|null $value) : mixed
Parameters
$selected : bool
$guidelines : string|null
$value : string|float|bool|null

fromArray()

public static fromArray(array<string, mixed> $rawResponse) : self
Parameters
$rawResponse : array<string, mixed>

Raw server response array.

Return values
self

toArray()

public toArray() : array<string, mixed>
Return values
array<string, mixed>

Array representation for serialization.

On this page

Search results