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

182 lines
5.2 KiB
PHP

<?php
declare(strict_types=1);
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;
/**
* Composés spéciaux (Choline, Carnitine, Taurine, Nucléotides).
*/
class IncoCompoSpecialCompounds implements AdditionalDataHolder, Parsable
{
/**
* @var array<string, mixed>|null 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 (mg/100g).
*/
private ?string $carnitine = null;
/**
* @var string|null Choline (mg/100g).
*/
private ?string $choline = null;
/**
* @var string|null Nucléotides (mg/100g).
*/
private ?string $nucleotides = null;
/**
* @var string|null 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
*/
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<string, mixed>|null
*/
public function getAdditionalData(): ?array
{
return $this->additionalData;
}
/**
* Gets the carnitine property value. Carnitine (mg/100g).
*/
public function getCarnitine(): ?string
{
return $this->carnitine;
}
/**
* Gets the choline property value. Choline (mg/100g).
*/
public function getCholine(): ?string
{
return $this->choline;
}
/**
* The deserialization information for the current model
*
* @return array<string, callable(ParseNode): void>
*/
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).
*/
public function getNucleotides(): ?string
{
return $this->nucleotides;
}
/**
* Gets the taurine property value. Taurine (mg/100g).
*/
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<string,mixed> $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;
}
}