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
$addedSugars
public
NutritionFactsLabelV1AddedSugar
$addedSugars
The amount of added sugars in the product.
$calories
public
NutritionFactsLabelV1Calorie
$calories
The amount of calories in the product.
$cholesterol
public
NutritionFactsLabelV1Cholesterol
$cholesterol
The amount of cholesterol in the product.
$dietaryFiber
public
NutritionFactsLabelV1DietaryFiber
$dietaryFiber
The amount of dietary fiber in the product.
$nutrients
public
NutritionFactsLabelV1Nutrients
$nutrients
The amount of nutrients in the product.
$protein
public
NutritionFactsLabelV1Protein
$protein
The amount of protein in the product.
$saturatedFat
public
NutritionFactsLabelV1SaturatedFat
$saturatedFat
The amount of saturated fat in the product.
$servingPerBox
public
AmountField
$servingPerBox
The number of servings in each box of the product.
$servingSize
public
NutritionFactsLabelV1ServingSize
$servingSize
The size of a single serving of the product.
$sodium
public
NutritionFactsLabelV1Sodium
$sodium
The amount of sodium in the product.
$totalCarbohydrate
public
NutritionFactsLabelV1TotalCarbohydrate
$totalCarbohydrate
The total amount of carbohydrates in the product.
$totalFat
public
NutritionFactsLabelV1TotalFat
$totalFat
The total amount of fat in the product.
$totalSugars
public
NutritionFactsLabelV1TotalSugar
$totalSugars
The total amount of sugars in the product.
$transFat
public
NutritionFactsLabelV1TransFat
$transFat
The amount of trans fat in the product.
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
__toString()
public
__toString() : string
Return values
string —String representation.