Documentation

Extras
in package

Extras collection wrapper class.

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

Table of Contents

Properties

$cropper  : CropperExtra|null
$fullTextOcr  : CropperExtra|null
$data  : 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, mixed> $data

Other extras.

Methods

__construct()

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

Raw prediction array.

__set()

Sets a field.

public __set(mixed $varName, mixed $value) : void
Parameters
$varName : mixed

Name of the field to set.

$value : 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, mixed> $rawPrediction) : void

Currently only used for full_text_ocr.

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

Raw HTTP response.


        
On this page

Search results