|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 $cholecalciferol The cholecalciferol property */ private ?string $cholecalciferol = null; /** * @var string|null $niacin The niacin property */ private ?string $niacin = null; /** * @var string|null $vitaminA The vitaminA property */ private ?string $vitaminA = null; /** * @var string|null $vitaminB12 The vitaminB12 property */ private ?string $vitaminB12 = null; /** * @var string|null $vitaminB6 The vitaminB6 property */ private ?string $vitaminB6 = null; /** * @var string|null $vitaminC The vitaminC property */ private ?string $vitaminC = null; /** * @var string|null $vitaminD The vitaminD property */ private ?string $vitaminD = null; /** * @var string|null $vitaminE The vitaminE property */ private ?string $vitaminE = null; /** * @var string|null $vitaminK The vitaminK property */ private ?string $vitaminK = null; /** * Instantiates a new IncoCompoVitamins 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 IncoCompoVitamins */ public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoVitamins { return new IncoCompoVitamins(); } /** * 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 cholecalciferol property value. The cholecalciferol property * @return string|null */ public function getCholecalciferol(): ?string { return $this->cholecalciferol; } /** * The deserialization information for the current model * @return array */ public function getFieldDeserializers(): array { $o = $this; return [ 'cholecalciferol' => fn(ParseNode $n) => $o->setCholecalciferol($n->getStringValue()), 'niacin' => fn(ParseNode $n) => $o->setNiacin($n->getStringValue()), 'vitaminA' => fn(ParseNode $n) => $o->setVitaminA($n->getStringValue()), 'vitaminB12' => fn(ParseNode $n) => $o->setVitaminB12($n->getStringValue()), 'vitaminB6' => fn(ParseNode $n) => $o->setVitaminB6($n->getStringValue()), 'vitaminC' => fn(ParseNode $n) => $o->setVitaminC($n->getStringValue()), 'vitaminD' => fn(ParseNode $n) => $o->setVitaminD($n->getStringValue()), 'vitaminE' => fn(ParseNode $n) => $o->setVitaminE($n->getStringValue()), 'vitaminK' => fn(ParseNode $n) => $o->setVitaminK($n->getStringValue()), ]; } /** * Gets the niacin property value. The niacin property * @return string|null */ public function getNiacin(): ?string { return $this->niacin; } /** * Gets the vitaminA property value. The vitaminA property * @return string|null */ public function getVitaminA(): ?string { return $this->vitaminA; } /** * Gets the vitaminB12 property value. The vitaminB12 property * @return string|null */ public function getVitaminB12(): ?string { return $this->vitaminB12; } /** * Gets the vitaminB6 property value. The vitaminB6 property * @return string|null */ public function getVitaminB6(): ?string { return $this->vitaminB6; } /** * Gets the vitaminC property value. The vitaminC property * @return string|null */ public function getVitaminC(): ?string { return $this->vitaminC; } /** * Gets the vitaminD property value. The vitaminD property * @return string|null */ public function getVitaminD(): ?string { return $this->vitaminD; } /** * Gets the vitaminE property value. The vitaminE property * @return string|null */ public function getVitaminE(): ?string { return $this->vitaminE; } /** * Gets the vitaminK property value. The vitaminK property * @return string|null */ public function getVitaminK(): ?string { return $this->vitaminK; } /** * Serializes information the current object * @param SerializationWriter $writer Serialization writer to use to serialize this model */ public function serialize(SerializationWriter $writer): void { $writer->writeStringValue('cholecalciferol', $this->getCholecalciferol()); $writer->writeStringValue('niacin', $this->getNiacin()); $writer->writeStringValue('vitaminA', $this->getVitaminA()); $writer->writeStringValue('vitaminB12', $this->getVitaminB12()); $writer->writeStringValue('vitaminB6', $this->getVitaminB6()); $writer->writeStringValue('vitaminC', $this->getVitaminC()); $writer->writeStringValue('vitaminD', $this->getVitaminD()); $writer->writeStringValue('vitaminE', $this->getVitaminE()); $writer->writeStringValue('vitaminK', $this->getVitaminK()); $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 cholecalciferol property value. The cholecalciferol property * @param string|null $value Value to set for the cholecalciferol property. */ public function setCholecalciferol(?string $value): void { $this->cholecalciferol = $value; } /** * Sets the niacin property value. The niacin property * @param string|null $value Value to set for the niacin property. */ public function setNiacin(?string $value): void { $this->niacin = $value; } /** * Sets the vitaminA property value. The vitaminA property * @param string|null $value Value to set for the vitaminA property. */ public function setVitaminA(?string $value): void { $this->vitaminA = $value; } /** * Sets the vitaminB12 property value. The vitaminB12 property * @param string|null $value Value to set for the vitaminB12 property. */ public function setVitaminB12(?string $value): void { $this->vitaminB12 = $value; } /** * Sets the vitaminB6 property value. The vitaminB6 property * @param string|null $value Value to set for the vitaminB6 property. */ public function setVitaminB6(?string $value): void { $this->vitaminB6 = $value; } /** * Sets the vitaminC property value. The vitaminC property * @param string|null $value Value to set for the vitaminC property. */ public function setVitaminC(?string $value): void { $this->vitaminC = $value; } /** * Sets the vitaminD property value. The vitaminD property * @param string|null $value Value to set for the vitaminD property. */ public function setVitaminD(?string $value): void { $this->vitaminD = $value; } /** * Sets the vitaminE property value. The vitaminE property * @param string|null $value Value to set for the vitaminE property. */ public function setVitaminE(?string $value): void { $this->vitaminE = $value; } /** * Sets the vitaminK property value. The vitaminK property * @param string|null $value Value to set for the vitaminK property. */ public function setVitaminK(?string $value): void { $this->vitaminK = $value; } }