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

457 lines
12 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;
/**
* Teneur détaillée en minéraux et oligo-éléments.
*/
class IncoCompoMinerals 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 The calcium property
*/
private ?string $calcium = null;
/**
* @var string|null The chloride property
*/
private ?string $chloride = null;
/**
* @var string|null The chromium property
*/
private ?string $chromium = null;
/**
* @var string|null The copper property
*/
private ?string $copper = null;
/**
* @var string|null The iodine property
*/
private ?string $iodine = null;
/**
* @var string|null The iron property
*/
private ?string $iron = null;
/**
* @var string|null The magnesium property
*/
private ?string $magnesium = null;
/**
* @var string|null The manganese property
*/
private ?string $manganese = null;
/**
* @var string|null The molybdenum property
*/
private ?string $molybdenum = null;
/**
* @var string|null The nitrates property
*/
private ?string $nitrates = null;
/**
* @var string|null The phosphorus property
*/
private ?string $phosphorus = null;
/**
* @var string|null The potassium property
*/
private ?string $potassium = null;
/**
* @var string|null The selenium property
*/
private ?string $selenium = null;
/**
* @var string|null The sulfur property
*/
private ?string $sulfur = null;
/**
* @var string|null The zinc property
*/
private ?string $zinc = null;
/**
* Instantiates a new IncoCompoMinerals 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): IncoCompoMinerals
{
return new IncoCompoMinerals();
}
/**
* 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 calcium property value. The calcium property
*/
public function getCalcium(): ?string
{
return $this->calcium;
}
/**
* Gets the chloride property value. The chloride property
*/
public function getChloride(): ?string
{
return $this->chloride;
}
/**
* Gets the chromium property value. The chromium property
*/
public function getChromium(): ?string
{
return $this->chromium;
}
/**
* Gets the copper property value. The copper property
*/
public function getCopper(): ?string
{
return $this->copper;
}
/**
* The deserialization information for the current model
*
* @return array<string, callable(ParseNode): void>
*/
public function getFieldDeserializers(): array
{
$o = $this;
return [
'calcium' => fn (ParseNode $n) => $o->setCalcium($n->getStringValue()),
'chloride' => fn (ParseNode $n) => $o->setChloride($n->getStringValue()),
'chromium' => fn (ParseNode $n) => $o->setChromium($n->getStringValue()),
'copper' => fn (ParseNode $n) => $o->setCopper($n->getStringValue()),
'iodine' => fn (ParseNode $n) => $o->setIodine($n->getStringValue()),
'iron' => fn (ParseNode $n) => $o->setIron($n->getStringValue()),
'magnesium' => fn (ParseNode $n) => $o->setMagnesium($n->getStringValue()),
'manganese' => fn (ParseNode $n) => $o->setManganese($n->getStringValue()),
'molybdenum' => fn (ParseNode $n) => $o->setMolybdenum($n->getStringValue()),
'nitrates' => fn (ParseNode $n) => $o->setNitrates($n->getStringValue()),
'phosphorus' => fn (ParseNode $n) => $o->setPhosphorus($n->getStringValue()),
'potassium' => fn (ParseNode $n) => $o->setPotassium($n->getStringValue()),
'selenium' => fn (ParseNode $n) => $o->setSelenium($n->getStringValue()),
'sulfur' => fn (ParseNode $n) => $o->setSulfur($n->getStringValue()),
'zinc' => fn (ParseNode $n) => $o->setZinc($n->getStringValue()),
];
}
/**
* Gets the iodine property value. The iodine property
*/
public function getIodine(): ?string
{
return $this->iodine;
}
/**
* Gets the iron property value. The iron property
*/
public function getIron(): ?string
{
return $this->iron;
}
/**
* Gets the magnesium property value. The magnesium property
*/
public function getMagnesium(): ?string
{
return $this->magnesium;
}
/**
* Gets the manganese property value. The manganese property
*/
public function getManganese(): ?string
{
return $this->manganese;
}
/**
* Gets the molybdenum property value. The molybdenum property
*/
public function getMolybdenum(): ?string
{
return $this->molybdenum;
}
/**
* Gets the nitrates property value. The nitrates property
*/
public function getNitrates(): ?string
{
return $this->nitrates;
}
/**
* Gets the phosphorus property value. The phosphorus property
*/
public function getPhosphorus(): ?string
{
return $this->phosphorus;
}
/**
* Gets the potassium property value. The potassium property
*/
public function getPotassium(): ?string
{
return $this->potassium;
}
/**
* Gets the selenium property value. The selenium property
*/
public function getSelenium(): ?string
{
return $this->selenium;
}
/**
* Gets the sulfur property value. The sulfur property
*/
public function getSulfur(): ?string
{
return $this->sulfur;
}
/**
* Gets the zinc property value. The zinc property
*/
public function getZinc(): ?string
{
return $this->zinc;
}
/**
* Serializes information the current object
*
* @param SerializationWriter $writer Serialization writer to use to serialize this model
*/
public function serialize(SerializationWriter $writer): void
{
$writer->writeStringValue('calcium', $this->getCalcium());
$writer->writeStringValue('chloride', $this->getChloride());
$writer->writeStringValue('chromium', $this->getChromium());
$writer->writeStringValue('copper', $this->getCopper());
$writer->writeStringValue('iodine', $this->getIodine());
$writer->writeStringValue('iron', $this->getIron());
$writer->writeStringValue('magnesium', $this->getMagnesium());
$writer->writeStringValue('manganese', $this->getManganese());
$writer->writeStringValue('molybdenum', $this->getMolybdenum());
$writer->writeStringValue('nitrates', $this->getNitrates());
$writer->writeStringValue('phosphorus', $this->getPhosphorus());
$writer->writeStringValue('potassium', $this->getPotassium());
$writer->writeStringValue('selenium', $this->getSelenium());
$writer->writeStringValue('sulfur', $this->getSulfur());
$writer->writeStringValue('zinc', $this->getZinc());
$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 calcium property value. The calcium property
*
* @param string|null $value Value to set for the calcium property.
*/
public function setCalcium(?string $value): void
{
$this->calcium = $value;
}
/**
* Sets the chloride property value. The chloride property
*
* @param string|null $value Value to set for the chloride property.
*/
public function setChloride(?string $value): void
{
$this->chloride = $value;
}
/**
* Sets the chromium property value. The chromium property
*
* @param string|null $value Value to set for the chromium property.
*/
public function setChromium(?string $value): void
{
$this->chromium = $value;
}
/**
* Sets the copper property value. The copper property
*
* @param string|null $value Value to set for the copper property.
*/
public function setCopper(?string $value): void
{
$this->copper = $value;
}
/**
* Sets the iodine property value. The iodine property
*
* @param string|null $value Value to set for the iodine property.
*/
public function setIodine(?string $value): void
{
$this->iodine = $value;
}
/**
* Sets the iron property value. The iron property
*
* @param string|null $value Value to set for the iron property.
*/
public function setIron(?string $value): void
{
$this->iron = $value;
}
/**
* Sets the magnesium property value. The magnesium property
*
* @param string|null $value Value to set for the magnesium property.
*/
public function setMagnesium(?string $value): void
{
$this->magnesium = $value;
}
/**
* Sets the manganese property value. The manganese property
*
* @param string|null $value Value to set for the manganese property.
*/
public function setManganese(?string $value): void
{
$this->manganese = $value;
}
/**
* Sets the molybdenum property value. The molybdenum property
*
* @param string|null $value Value to set for the molybdenum property.
*/
public function setMolybdenum(?string $value): void
{
$this->molybdenum = $value;
}
/**
* Sets the nitrates property value. The nitrates property
*
* @param string|null $value Value to set for the nitrates property.
*/
public function setNitrates(?string $value): void
{
$this->nitrates = $value;
}
/**
* Sets the phosphorus property value. The phosphorus property
*
* @param string|null $value Value to set for the phosphorus property.
*/
public function setPhosphorus(?string $value): void
{
$this->phosphorus = $value;
}
/**
* Sets the potassium property value. The potassium property
*
* @param string|null $value Value to set for the potassium property.
*/
public function setPotassium(?string $value): void
{
$this->potassium = $value;
}
/**
* Sets the selenium property value. The selenium property
*
* @param string|null $value Value to set for the selenium property.
*/
public function setSelenium(?string $value): void
{
$this->selenium = $value;
}
/**
* Sets the sulfur property value. The sulfur property
*
* @param string|null $value Value to set for the sulfur property.
*/
public function setSulfur(?string $value): void
{
$this->sulfur = $value;
}
/**
* Sets the zinc property value. The zinc property
*
* @param string|null $value Value to set for the zinc property.
*/
public function setZinc(?string $value): void
{
$this->zinc = $value;
}
}