Documentation

Extras
in package
implements Stringable

Extras collection wrapper class.

Is roughly equivalent to an array of Extras, with a bit more utility.

Table of Contents

Interfaces

Stringable

Properties

$cropper  : CropperExtra|null
$fullTextOcr  : FullTextOcrExtra|null
$rag  : RagExtra|null
$data  : array<string, int|float|string|bool|null|array<string|int, mixed>>

Methods

__construct()  : mixed
__set()  : void
Sets a field.
__toString()  : string
addArtificialExtra()  : void
Adds artificial extra data for reconstructed extras.

Properties

$data

private array<string, int|float|string|bool|null|array<string|int, mixed>> $data

Other extras.

Methods

__construct()

public __construct(array<string, int|float|string|bool|null|array<string|int, mixed>> $rawPrediction) : mixed
Parameters
$rawPrediction : array<string, int|float|string|bool|null|array<string|int, mixed>>

Raw prediction array.

__set()

Sets a field.

public __set(string $varName, int|float|string|bool|null|array<string|int, mixed> $value) : void
Parameters
$varName : string

Name of the field to set.

$value : int|float|string|bool|null|array<string|int, mixed>

Value to set the field with.

__toString()

public __toString() : string
Return values
string

addArtificialExtra()

Adds artificial extra data for reconstructed extras.

public addArtificialExtra(array<string, int|float|string|bool|null|array<string|int, mixed>> $rawPrediction) : void

Currently only used for full_text_ocr.

Parameters
$rawPrediction : array<string, int|float|string|bool|null|array<string|int, mixed>>

Raw HTTP response.

On this page

Search results