|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 $carnitine Carnitine (mg/100g). */ private ?string $carnitine = null; /** * @var string|null $choline Choline (mg/100g). */ private ?string $choline = null; /** * @var string|null $nucleotides Nucléotides (mg/100g). */ private ?string $nucleotides = null; /** * @var string|null $taurine Taurine (mg/100g). */ private ?string $taurine = null; /** * Instantiates a new IncoCompoSpecialCompounds 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 IncoCompoSpecialCompounds */ public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoSpecialCompounds { return new IncoCompoSpecialCompounds(); } /** * 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 carnitine property value. Carnitine (mg/100g). * @return string|null */ public function getCarnitine(): ?string { return $this->carnitine; } /** * Gets the choline property value. Choline (mg/100g). * @return string|null */ public function getCholine(): ?string { return $this->choline; } /** * The deserialization information for the current model * @return array */ public function getFieldDeserializers(): array { $o = $this; return [ 'carnitine' => fn(ParseNode $n) => $o->setCarnitine($n->getStringValue()), 'choline' => fn(ParseNode $n) => $o->setCholine($n->getStringValue()), 'nucleotides' => fn(ParseNode $n) => $o->setNucleotides($n->getStringValue()), 'taurine' => fn(ParseNode $n) => $o->setTaurine($n->getStringValue()), ]; } /** * Gets the nucleotides property value. Nucléotides (mg/100g). * @return string|null */ public function getNucleotides(): ?string { return $this->nucleotides; } /** * Gets the taurine property value. Taurine (mg/100g). * @return string|null */ public function getTaurine(): ?string { return $this->taurine; } /** * Serializes information the current object * @param SerializationWriter $writer Serialization writer to use to serialize this model */ public function serialize(SerializationWriter $writer): void { $writer->writeStringValue('carnitine', $this->getCarnitine()); $writer->writeStringValue('choline', $this->getCholine()); $writer->writeStringValue('nucleotides', $this->getNucleotides()); $writer->writeStringValue('taurine', $this->getTaurine()); $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 carnitine property value. Carnitine (mg/100g). * @param string|null $value Value to set for the carnitine property. */ public function setCarnitine(?string $value): void { $this->carnitine = $value; } /** * Sets the choline property value. Choline (mg/100g). * @param string|null $value Value to set for the choline property. */ public function setCholine(?string $value): void { $this->choline = $value; } /** * Sets the nucleotides property value. Nucléotides (mg/100g). * @param string|null $value Value to set for the nucleotides property. */ public function setNucleotides(?string $value): void { $this->nucleotides = $value; } /** * Sets the taurine property value. Taurine (mg/100g). * @param string|null $value Value to set for the taurine property. */ public function setTaurine(?string $value): void { $this->taurine = $value; } }