139 lines
4.4 KiB
PHP
139 lines
4.4 KiB
PHP
<?php
|
|
|
|
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;
|
|
|
|
/**
|
|
* Quantités de fruits, noix et FNL.
|
|
*/
|
|
class FruitAndNutAmount implements AdditionalDataHolder, Parsable
|
|
{
|
|
/**
|
|
* @var array<string, mixed>|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 $freshFnl The freshFnl property
|
|
*/
|
|
private ?string $freshFnl = null;
|
|
|
|
/**
|
|
* @var string|null $fruits The fruits property
|
|
*/
|
|
private ?string $fruits = null;
|
|
|
|
/**
|
|
* @var string|null $nuts The nuts property
|
|
*/
|
|
private ?string $nuts = null;
|
|
|
|
/**
|
|
* Instantiates a new FruitAndNutAmount 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 FruitAndNutAmount
|
|
*/
|
|
public static function createFromDiscriminatorValue(ParseNode $parseNode): FruitAndNutAmount {
|
|
return new FruitAndNutAmount();
|
|
}
|
|
|
|
/**
|
|
* 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;
|
|
}
|
|
|
|
/**
|
|
* The deserialization information for the current model
|
|
* @return array<string, callable(ParseNode): void>
|
|
*/
|
|
public function getFieldDeserializers(): array {
|
|
$o = $this;
|
|
return [
|
|
'freshFnl' => fn(ParseNode $n) => $o->setFreshFnl($n->getStringValue()),
|
|
'fruits' => fn(ParseNode $n) => $o->setFruits($n->getStringValue()),
|
|
'nuts' => fn(ParseNode $n) => $o->setNuts($n->getStringValue()),
|
|
];
|
|
}
|
|
|
|
/**
|
|
* Gets the freshFnl property value. The freshFnl property
|
|
* @return string|null
|
|
*/
|
|
public function getFreshFnl(): ?string {
|
|
return $this->freshFnl;
|
|
}
|
|
|
|
/**
|
|
* Gets the fruits property value. The fruits property
|
|
* @return string|null
|
|
*/
|
|
public function getFruits(): ?string {
|
|
return $this->fruits;
|
|
}
|
|
|
|
/**
|
|
* Gets the nuts property value. The nuts property
|
|
* @return string|null
|
|
*/
|
|
public function getNuts(): ?string {
|
|
return $this->nuts;
|
|
}
|
|
|
|
/**
|
|
* Serializes information the current object
|
|
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
|
*/
|
|
public function serialize(SerializationWriter $writer): void {
|
|
$writer->writeStringValue('freshFnl', $this->getFreshFnl());
|
|
$writer->writeStringValue('fruits', $this->getFruits());
|
|
$writer->writeStringValue('nuts', $this->getNuts());
|
|
$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 freshFnl property value. The freshFnl property
|
|
* @param string|null $value Value to set for the freshFnl property.
|
|
*/
|
|
public function setFreshFnl(?string $value): void {
|
|
$this->freshFnl = $value;
|
|
}
|
|
|
|
/**
|
|
* Sets the fruits property value. The fruits property
|
|
* @param string|null $value Value to set for the fruits property.
|
|
*/
|
|
public function setFruits(?string $value): void {
|
|
$this->fruits = $value;
|
|
}
|
|
|
|
/**
|
|
* Sets the nuts property value. The nuts property
|
|
* @param string|null $value Value to set for the nuts property.
|
|
*/
|
|
public function setNuts(?string $value): void {
|
|
$this->nuts = $value;
|
|
}
|
|
|
|
}
|