|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 IncoCompoAminoAcids|null $aminoAcids Teneur en acides aminés et protéines de lait. */ private ?IncoCompoAminoAcids $aminoAcids = null; /** * @var IncoCompoCarbohydratesDetail|null $carbohydratesDetail Composition détaillée des glucides et fibres. */ private ?IncoCompoCarbohydratesDetail $carbohydratesDetail = null; /** * @var IncoCompoEnergy|null $energy Valeurs énergétiques. */ private ?IncoCompoEnergy $energy = null; /** * @var IncoCompoFattyAcids|null $fattyAcids Teneur détaillée en acides gras (AGS, AGMI, AGPI). */ private ?IncoCompoFattyAcids $fattyAcids = null; /** * @var IncoCompoFreshProduceAndNuts|null $freshProduceAndNuts Teneur en fruits, légumes et noix (FNL). */ private ?IncoCompoFreshProduceAndNuts $freshProduceAndNuts = null; /** * @var IncoCompositionIdentification|null $identification Informations d'identification de la composition INCO. */ private ?IncoCompositionIdentification $identification = null; /** * @var string|null $incoCompoId The incoCompoId property */ private ?string $incoCompoId = null; /** * @var string|null $incoId The incoId property */ private ?string $incoId = null; /** * @var IncoCompoMinerals|null $minerals Teneur détaillée en minéraux et oligo-éléments. */ private ?IncoCompoMinerals $minerals = null; /** * @var IncoCompoNutriScore|null $nutriScore Détail des composantes et classement Nutri-Score. */ private ?IncoCompoNutriScore $nutriScore = null; /** * @var IncoCompoNutriScorePoints|null $nutriScorePoints Points élémentaires du calcul Nutri-Score. */ private ?IncoCompoNutriScorePoints $nutriScorePoints = null; /** * @var IncoCompoPortionMacronutrients|null $portionMacronutrients Macronutriments par portion. */ private ?IncoCompoPortionMacronutrients $portionMacronutrients = null; /** * @var IncoCompoReferenceIntakes|null $referenceIntakes Pourcentages des apports de référence (AR / ARIC). */ private ?IncoCompoReferenceIntakes $referenceIntakes = null; /** * @var IncoCompoReferenceMacronutrients|null $referenceMacronutrients Macronutriments de référence pour 100g/ml. */ private ?IncoCompoReferenceMacronutrients $referenceMacronutrients = null; /** * @var IncoCompoSpecialCompounds|null $specialCompounds Composés spéciaux (Choline, Carnitine, Taurine, Nucléotides). */ private ?IncoCompoSpecialCompounds $specialCompounds = null; /** * @var IncoCompoVitamins|null $vitamins Teneur détaillée en vitamines. */ private ?IncoCompoVitamins $vitamins = null; /** * Instantiates a new IncoCompo 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 IncoCompo */ public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompo { return new IncoCompo(); } /** * 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|null */ public function getAdditionalData(): ?array { return $this->additionalData; } /** * Gets the aminoAcids property value. Teneur en acides aminés et protéines de lait. * @return IncoCompoAminoAcids|null */ public function getAminoAcids(): ?IncoCompoAminoAcids { return $this->aminoAcids; } /** * Gets the carbohydratesDetail property value. Composition détaillée des glucides et fibres. * @return IncoCompoCarbohydratesDetail|null */ public function getCarbohydratesDetail(): ?IncoCompoCarbohydratesDetail { return $this->carbohydratesDetail; } /** * Gets the energy property value. Valeurs énergétiques. * @return IncoCompoEnergy|null */ public function getEnergy(): ?IncoCompoEnergy { return $this->energy; } /** * Gets the fattyAcids property value. Teneur détaillée en acides gras (AGS, AGMI, AGPI). * @return IncoCompoFattyAcids|null */ public function getFattyAcids(): ?IncoCompoFattyAcids { return $this->fattyAcids; } /** * The deserialization information for the current model * @return array */ public function getFieldDeserializers(): array { $o = $this; return [ 'aminoAcids' => fn(ParseNode $n) => $o->setAminoAcids($n->getObjectValue([IncoCompoAminoAcids::class, 'createFromDiscriminatorValue'])), 'carbohydratesDetail' => fn(ParseNode $n) => $o->setCarbohydratesDetail($n->getObjectValue([IncoCompoCarbohydratesDetail::class, 'createFromDiscriminatorValue'])), 'energy' => fn(ParseNode $n) => $o->setEnergy($n->getObjectValue([IncoCompoEnergy::class, 'createFromDiscriminatorValue'])), 'fattyAcids' => fn(ParseNode $n) => $o->setFattyAcids($n->getObjectValue([IncoCompoFattyAcids::class, 'createFromDiscriminatorValue'])), 'freshProduceAndNuts' => fn(ParseNode $n) => $o->setFreshProduceAndNuts($n->getObjectValue([IncoCompoFreshProduceAndNuts::class, 'createFromDiscriminatorValue'])), 'identification' => fn(ParseNode $n) => $o->setIdentification($n->getObjectValue([IncoCompositionIdentification::class, 'createFromDiscriminatorValue'])), 'incoCompoId' => fn(ParseNode $n) => $o->setIncoCompoId($n->getStringValue()), 'incoId' => fn(ParseNode $n) => $o->setIncoId($n->getStringValue()), 'minerals' => fn(ParseNode $n) => $o->setMinerals($n->getObjectValue([IncoCompoMinerals::class, 'createFromDiscriminatorValue'])), 'nutriScore' => fn(ParseNode $n) => $o->setNutriScore($n->getObjectValue([IncoCompoNutriScore::class, 'createFromDiscriminatorValue'])), 'nutriScorePoints' => fn(ParseNode $n) => $o->setNutriScorePoints($n->getObjectValue([IncoCompoNutriScorePoints::class, 'createFromDiscriminatorValue'])), 'portionMacronutrients' => fn(ParseNode $n) => $o->setPortionMacronutrients($n->getObjectValue([IncoCompoPortionMacronutrients::class, 'createFromDiscriminatorValue'])), 'referenceIntakes' => fn(ParseNode $n) => $o->setReferenceIntakes($n->getObjectValue([IncoCompoReferenceIntakes::class, 'createFromDiscriminatorValue'])), 'referenceMacronutrients' => fn(ParseNode $n) => $o->setReferenceMacronutrients($n->getObjectValue([IncoCompoReferenceMacronutrients::class, 'createFromDiscriminatorValue'])), 'specialCompounds' => fn(ParseNode $n) => $o->setSpecialCompounds($n->getObjectValue([IncoCompoSpecialCompounds::class, 'createFromDiscriminatorValue'])), 'vitamins' => fn(ParseNode $n) => $o->setVitamins($n->getObjectValue([IncoCompoVitamins::class, 'createFromDiscriminatorValue'])), ]; } /** * Gets the freshProduceAndNuts property value. Teneur en fruits, légumes et noix (FNL). * @return IncoCompoFreshProduceAndNuts|null */ public function getFreshProduceAndNuts(): ?IncoCompoFreshProduceAndNuts { return $this->freshProduceAndNuts; } /** * Gets the identification property value. Informations d'identification de la composition INCO. * @return IncoCompositionIdentification|null */ public function getIdentification(): ?IncoCompositionIdentification { return $this->identification; } /** * Gets the incoCompoId property value. The incoCompoId property * @return string|null */ public function getIncoCompoId(): ?string { return $this->incoCompoId; } /** * Gets the incoId property value. The incoId property * @return string|null */ public function getIncoId(): ?string { return $this->incoId; } /** * Gets the minerals property value. Teneur détaillée en minéraux et oligo-éléments. * @return IncoCompoMinerals|null */ public function getMinerals(): ?IncoCompoMinerals { return $this->minerals; } /** * Gets the nutriScore property value. Détail des composantes et classement Nutri-Score. * @return IncoCompoNutriScore|null */ public function getNutriScore(): ?IncoCompoNutriScore { return $this->nutriScore; } /** * Gets the nutriScorePoints property value. Points élémentaires du calcul Nutri-Score. * @return IncoCompoNutriScorePoints|null */ public function getNutriScorePoints(): ?IncoCompoNutriScorePoints { return $this->nutriScorePoints; } /** * Gets the portionMacronutrients property value. Macronutriments par portion. * @return IncoCompoPortionMacronutrients|null */ public function getPortionMacronutrients(): ?IncoCompoPortionMacronutrients { return $this->portionMacronutrients; } /** * Gets the referenceIntakes property value. Pourcentages des apports de référence (AR / ARIC). * @return IncoCompoReferenceIntakes|null */ public function getReferenceIntakes(): ?IncoCompoReferenceIntakes { return $this->referenceIntakes; } /** * Gets the referenceMacronutrients property value. Macronutriments de référence pour 100g/ml. * @return IncoCompoReferenceMacronutrients|null */ public function getReferenceMacronutrients(): ?IncoCompoReferenceMacronutrients { return $this->referenceMacronutrients; } /** * Gets the specialCompounds property value. Composés spéciaux (Choline, Carnitine, Taurine, Nucléotides). * @return IncoCompoSpecialCompounds|null */ public function getSpecialCompounds(): ?IncoCompoSpecialCompounds { return $this->specialCompounds; } /** * Gets the vitamins property value. Teneur détaillée en vitamines. * @return IncoCompoVitamins|null */ public function getVitamins(): ?IncoCompoVitamins { return $this->vitamins; } /** * Serializes information the current object * @param SerializationWriter $writer Serialization writer to use to serialize this model */ public function serialize(SerializationWriter $writer): void { $writer->writeObjectValue('aminoAcids', $this->getAminoAcids()); $writer->writeObjectValue('carbohydratesDetail', $this->getCarbohydratesDetail()); $writer->writeObjectValue('energy', $this->getEnergy()); $writer->writeObjectValue('fattyAcids', $this->getFattyAcids()); $writer->writeObjectValue('freshProduceAndNuts', $this->getFreshProduceAndNuts()); $writer->writeObjectValue('identification', $this->getIdentification()); $writer->writeStringValue('incoCompoId', $this->getIncoCompoId()); $writer->writeStringValue('incoId', $this->getIncoId()); $writer->writeObjectValue('minerals', $this->getMinerals()); $writer->writeObjectValue('nutriScore', $this->getNutriScore()); $writer->writeObjectValue('nutriScorePoints', $this->getNutriScorePoints()); $writer->writeObjectValue('portionMacronutrients', $this->getPortionMacronutrients()); $writer->writeObjectValue('referenceIntakes', $this->getReferenceIntakes()); $writer->writeObjectValue('referenceMacronutrients', $this->getReferenceMacronutrients()); $writer->writeObjectValue('specialCompounds', $this->getSpecialCompounds()); $writer->writeObjectValue('vitamins', $this->getVitamins()); $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 $value Value to set for the AdditionalData property. */ public function setAdditionalData(?array $value): void { $this->additionalData = $value; } /** * Sets the aminoAcids property value. Teneur en acides aminés et protéines de lait. * @param IncoCompoAminoAcids|null $value Value to set for the aminoAcids property. */ public function setAminoAcids(?IncoCompoAminoAcids $value): void { $this->aminoAcids = $value; } /** * Sets the carbohydratesDetail property value. Composition détaillée des glucides et fibres. * @param IncoCompoCarbohydratesDetail|null $value Value to set for the carbohydratesDetail property. */ public function setCarbohydratesDetail(?IncoCompoCarbohydratesDetail $value): void { $this->carbohydratesDetail = $value; } /** * Sets the energy property value. Valeurs énergétiques. * @param IncoCompoEnergy|null $value Value to set for the energy property. */ public function setEnergy(?IncoCompoEnergy $value): void { $this->energy = $value; } /** * Sets the fattyAcids property value. Teneur détaillée en acides gras (AGS, AGMI, AGPI). * @param IncoCompoFattyAcids|null $value Value to set for the fattyAcids property. */ public function setFattyAcids(?IncoCompoFattyAcids $value): void { $this->fattyAcids = $value; } /** * Sets the freshProduceAndNuts property value. Teneur en fruits, légumes et noix (FNL). * @param IncoCompoFreshProduceAndNuts|null $value Value to set for the freshProduceAndNuts property. */ public function setFreshProduceAndNuts(?IncoCompoFreshProduceAndNuts $value): void { $this->freshProduceAndNuts = $value; } /** * Sets the identification property value. Informations d'identification de la composition INCO. * @param IncoCompositionIdentification|null $value Value to set for the identification property. */ public function setIdentification(?IncoCompositionIdentification $value): void { $this->identification = $value; } /** * Sets the incoCompoId property value. The incoCompoId property * @param string|null $value Value to set for the incoCompoId property. */ public function setIncoCompoId(?string $value): void { $this->incoCompoId = $value; } /** * Sets the incoId property value. The incoId property * @param string|null $value Value to set for the incoId property. */ public function setIncoId(?string $value): void { $this->incoId = $value; } /** * Sets the minerals property value. Teneur détaillée en minéraux et oligo-éléments. * @param IncoCompoMinerals|null $value Value to set for the minerals property. */ public function setMinerals(?IncoCompoMinerals $value): void { $this->minerals = $value; } /** * Sets the nutriScore property value. Détail des composantes et classement Nutri-Score. * @param IncoCompoNutriScore|null $value Value to set for the nutriScore property. */ public function setNutriScore(?IncoCompoNutriScore $value): void { $this->nutriScore = $value; } /** * Sets the nutriScorePoints property value. Points élémentaires du calcul Nutri-Score. * @param IncoCompoNutriScorePoints|null $value Value to set for the nutriScorePoints property. */ public function setNutriScorePoints(?IncoCompoNutriScorePoints $value): void { $this->nutriScorePoints = $value; } /** * Sets the portionMacronutrients property value. Macronutriments par portion. * @param IncoCompoPortionMacronutrients|null $value Value to set for the portionMacronutrients property. */ public function setPortionMacronutrients(?IncoCompoPortionMacronutrients $value): void { $this->portionMacronutrients = $value; } /** * Sets the referenceIntakes property value. Pourcentages des apports de référence (AR / ARIC). * @param IncoCompoReferenceIntakes|null $value Value to set for the referenceIntakes property. */ public function setReferenceIntakes(?IncoCompoReferenceIntakes $value): void { $this->referenceIntakes = $value; } /** * Sets the referenceMacronutrients property value. Macronutriments de référence pour 100g/ml. * @param IncoCompoReferenceMacronutrients|null $value Value to set for the referenceMacronutrients property. */ public function setReferenceMacronutrients(?IncoCompoReferenceMacronutrients $value): void { $this->referenceMacronutrients = $value; } /** * Sets the specialCompounds property value. Composés spéciaux (Choline, Carnitine, Taurine, Nucléotides). * @param IncoCompoSpecialCompounds|null $value Value to set for the specialCompounds property. */ public function setSpecialCompounds(?IncoCompoSpecialCompounds $value): void { $this->specialCompounds = $value; } /** * Sets the vitamins property value. Teneur détaillée en vitamines. * @param IncoCompoVitamins|null $value Value to set for the vitamins property. */ public function setVitamins(?IncoCompoVitamins $value): void { $this->vitamins = $value; } }