Documentation

NutritionFactsLabelV1Document extends Prediction
in package

Nutrition Facts Label API version 1.0 document data.

Table of Contents

Properties

$addedSugars  : NutritionFactsLabelV1AddedSugar
$calories  : NutritionFactsLabelV1Calorie
$cholesterol  : NutritionFactsLabelV1Cholesterol
$dietaryFiber  : NutritionFactsLabelV1DietaryFiber
$nutrients  : NutritionFactsLabelV1Nutrients
$protein  : NutritionFactsLabelV1Protein
$saturatedFat  : NutritionFactsLabelV1SaturatedFat
$servingPerBox  : AmountField
$servingSize  : NutritionFactsLabelV1ServingSize
$sodium  : NutritionFactsLabelV1Sodium
$totalCarbohydrate  : NutritionFactsLabelV1TotalCarbohydrate
$totalFat  : NutritionFactsLabelV1TotalFat
$totalSugars  : NutritionFactsLabelV1TotalSugar
$transFat  : NutritionFactsLabelV1TransFat

Methods

__construct()  : mixed
__toString()  : string

Properties

Methods

__construct()

public __construct(array<string|int, mixed> $rawPrediction[, int|null $pageId = null ]) : mixed
Parameters
$rawPrediction : array<string|int, mixed>

Raw prediction from HTTP response.

$pageId : int|null = null

Page number for multi pages document.

Tags
throws
MindeeUnsetException

Throws if a field doesn't appear in the response.


        
On this page

Search results