ldc-arcadia-kiota-openapi-c.../client/Models/IncoCompoNutriScorePoints.php

231 lines
7.8 KiB
PHP

<?php
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
use Microsoft\Kiota\Abstractions\Serialization\ParseNode;
use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
/**
* Points élémentaires du calcul Nutri-Score.
*/
class IncoCompoNutriScorePoints implements AdditionalDataHolder, Parsable
{
/**
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
*/
private ?array $additionalData = null;
/**
* @var string|null $energyPoints The energyPoints property
*/
private ?string $energyPoints = null;
/**
* @var string|null $fiberPoints The fiberPoints property
*/
private ?string $fiberPoints = null;
/**
* @var string|null $freshFnlPoints The freshFnlPoints property
*/
private ?string $freshFnlPoints = null;
/**
* @var string|null $proteinPoints The proteinPoints property
*/
private ?string $proteinPoints = null;
/**
* @var string|null $saltPoints The saltPoints property
*/
private ?string $saltPoints = null;
/**
* @var string|null $saturatedFatPoints The saturatedFatPoints property
*/
private ?string $saturatedFatPoints = null;
/**
* @var string|null $sugarsPoints The sugarsPoints property
*/
private ?string $sugarsPoints = null;
/**
* Instantiates a new IncoCompoNutriScorePoints and sets the default values.
*/
public function __construct() {
$this->setAdditionalData([]);
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
* @return IncoCompoNutriScorePoints
*/
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoNutriScorePoints {
return new IncoCompoNutriScorePoints();
}
/**
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
* @return array<string, mixed>|null
*/
public function getAdditionalData(): ?array {
return $this->additionalData;
}
/**
* Gets the energyPoints property value. The energyPoints property
* @return string|null
*/
public function getEnergyPoints(): ?string {
return $this->energyPoints;
}
/**
* Gets the fiberPoints property value. The fiberPoints property
* @return string|null
*/
public function getFiberPoints(): ?string {
return $this->fiberPoints;
}
/**
* The deserialization information for the current model
* @return array<string, callable(ParseNode): void>
*/
public function getFieldDeserializers(): array {
$o = $this;
return [
'energyPoints' => fn(ParseNode $n) => $o->setEnergyPoints($n->getStringValue()),
'fiberPoints' => fn(ParseNode $n) => $o->setFiberPoints($n->getStringValue()),
'freshFnlPoints' => fn(ParseNode $n) => $o->setFreshFnlPoints($n->getStringValue()),
'proteinPoints' => fn(ParseNode $n) => $o->setProteinPoints($n->getStringValue()),
'saltPoints' => fn(ParseNode $n) => $o->setSaltPoints($n->getStringValue()),
'saturatedFatPoints' => fn(ParseNode $n) => $o->setSaturatedFatPoints($n->getStringValue()),
'sugarsPoints' => fn(ParseNode $n) => $o->setSugarsPoints($n->getStringValue()),
];
}
/**
* Gets the freshFnlPoints property value. The freshFnlPoints property
* @return string|null
*/
public function getFreshFnlPoints(): ?string {
return $this->freshFnlPoints;
}
/**
* Gets the proteinPoints property value. The proteinPoints property
* @return string|null
*/
public function getProteinPoints(): ?string {
return $this->proteinPoints;
}
/**
* Gets the saltPoints property value. The saltPoints property
* @return string|null
*/
public function getSaltPoints(): ?string {
return $this->saltPoints;
}
/**
* Gets the saturatedFatPoints property value. The saturatedFatPoints property
* @return string|null
*/
public function getSaturatedFatPoints(): ?string {
return $this->saturatedFatPoints;
}
/**
* Gets the sugarsPoints property value. The sugarsPoints property
* @return string|null
*/
public function getSugarsPoints(): ?string {
return $this->sugarsPoints;
}
/**
* Serializes information the current object
* @param SerializationWriter $writer Serialization writer to use to serialize this model
*/
public function serialize(SerializationWriter $writer): void {
$writer->writeStringValue('energyPoints', $this->getEnergyPoints());
$writer->writeStringValue('fiberPoints', $this->getFiberPoints());
$writer->writeStringValue('freshFnlPoints', $this->getFreshFnlPoints());
$writer->writeStringValue('proteinPoints', $this->getProteinPoints());
$writer->writeStringValue('saltPoints', $this->getSaltPoints());
$writer->writeStringValue('saturatedFatPoints', $this->getSaturatedFatPoints());
$writer->writeStringValue('sugarsPoints', $this->getSugarsPoints());
$writer->writeAdditionalData($this->getAdditionalData());
}
/**
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
* @param array<string,mixed> $value Value to set for the AdditionalData property.
*/
public function setAdditionalData(?array $value): void {
$this->additionalData = $value;
}
/**
* Sets the energyPoints property value. The energyPoints property
* @param string|null $value Value to set for the energyPoints property.
*/
public function setEnergyPoints(?string $value): void {
$this->energyPoints = $value;
}
/**
* Sets the fiberPoints property value. The fiberPoints property
* @param string|null $value Value to set for the fiberPoints property.
*/
public function setFiberPoints(?string $value): void {
$this->fiberPoints = $value;
}
/**
* Sets the freshFnlPoints property value. The freshFnlPoints property
* @param string|null $value Value to set for the freshFnlPoints property.
*/
public function setFreshFnlPoints(?string $value): void {
$this->freshFnlPoints = $value;
}
/**
* Sets the proteinPoints property value. The proteinPoints property
* @param string|null $value Value to set for the proteinPoints property.
*/
public function setProteinPoints(?string $value): void {
$this->proteinPoints = $value;
}
/**
* Sets the saltPoints property value. The saltPoints property
* @param string|null $value Value to set for the saltPoints property.
*/
public function setSaltPoints(?string $value): void {
$this->saltPoints = $value;
}
/**
* Sets the saturatedFatPoints property value. The saturatedFatPoints property
* @param string|null $value Value to set for the saturatedFatPoints property.
*/
public function setSaturatedFatPoints(?string $value): void {
$this->saturatedFatPoints = $value;
}
/**
* Sets the sugarsPoints property value. The sugarsPoints property
* @param string|null $value Value to set for the sugarsPoints property.
*/
public function setSugarsPoints(?string $value): void {
$this->sugarsPoints = $value;
}
}