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

157 lines
4.4 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;
/**
* Informations d'identification de la composition INCO.
*/
class IncoCompositionIdentification 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 name property
*/
private ?string $name = null;
/**
* @var string|null The number property
*/
private ?string $number = null;
/**
* @var string|null The source property
*/
private ?string $source = null;
/**
* Instantiates a new IncoCompositionIdentification 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): IncoCompositionIdentification
{
return new IncoCompositionIdentification();
}
/**
* 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 [
'name' => fn (ParseNode $n) => $o->setName($n->getStringValue()),
'number' => fn (ParseNode $n) => $o->setNumber($n->getStringValue()),
'source' => fn (ParseNode $n) => $o->setSource($n->getStringValue()),
];
}
/**
* Gets the name property value. The name property
*/
public function getName(): ?string
{
return $this->name;
}
/**
* Gets the number property value. The number property
*/
public function getNumber(): ?string
{
return $this->number;
}
/**
* Gets the source property value. The source property
*/
public function getSource(): ?string
{
return $this->source;
}
/**
* Serializes information the current object
*
* @param SerializationWriter $writer Serialization writer to use to serialize this model
*/
public function serialize(SerializationWriter $writer): void
{
$writer->writeStringValue('name', $this->getName());
$writer->writeStringValue('number', $this->getNumber());
$writer->writeStringValue('source', $this->getSource());
$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 name property value. The name property
*
* @param string|null $value Value to set for the name property.
*/
public function setName(?string $value): void
{
$this->name = $value;
}
/**
* Sets the number property value. The number property
*
* @param string|null $value Value to set for the number property.
*/
public function setNumber(?string $value): void
{
$this->number = $value;
}
/**
* Sets the source property value. The source property
*
* @param string|null $value Value to set for the source property.
*/
public function setSource(?string $value): void
{
$this->source = $value;
}
}