2026-09-02 15:05:50 +02:00
|
|
|
<?php
|
|
|
|
|
|
2026-09-02 15:56:36 +02:00
|
|
|
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
2026-09-02 15:05:50 +02:00
|
|
|
|
|
|
|
|
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.
|
2026-09-17 17:27:29 +02:00
|
|
|
*/
|
|
|
|
|
class IncoCompositionIdentification implements AdditionalDataHolder, Parsable
|
2026-09-02 15:05:50 +02:00
|
|
|
{
|
|
|
|
|
/**
|
2026-09-17 17:27:29 +02:00
|
|
|
* @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.
|
|
|
|
|
*/
|
2026-09-02 15:05:50 +02:00
|
|
|
private ?array $additionalData = null;
|
2026-09-17 17:27:29 +02:00
|
|
|
|
2026-09-02 15:05:50 +02:00
|
|
|
/**
|
2026-09-17 17:27:29 +02:00
|
|
|
* @var string|null $name The name property
|
|
|
|
|
*/
|
2026-09-02 15:05:50 +02:00
|
|
|
private ?string $name = null;
|
2026-09-17 17:27:29 +02:00
|
|
|
|
2026-09-02 15:05:50 +02:00
|
|
|
/**
|
2026-09-17 17:27:29 +02:00
|
|
|
* @var string|null $number The number property
|
|
|
|
|
*/
|
2026-09-02 15:05:50 +02:00
|
|
|
private ?string $number = null;
|
2026-09-17 17:27:29 +02:00
|
|
|
|
2026-09-02 15:05:50 +02:00
|
|
|
/**
|
2026-09-17 17:27:29 +02:00
|
|
|
* @var string|null $source The source property
|
|
|
|
|
*/
|
2026-09-02 15:05:50 +02:00
|
|
|
private ?string $source = null;
|
2026-09-17 17:27:29 +02:00
|
|
|
|
2026-09-02 15:05:50 +02:00
|
|
|
/**
|
|
|
|
|
* Instantiates a new IncoCompositionIdentification and sets the default values.
|
2026-09-17 17:27:29 +02:00
|
|
|
*/
|
|
|
|
|
public function __construct() {
|
2026-09-02 15:05:50 +02:00
|
|
|
$this->setAdditionalData([]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Creates a new instance of the appropriate class based on discriminator value
|
2026-09-17 17:27:29 +02:00
|
|
|
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
|
|
|
|
* @return IncoCompositionIdentification
|
|
|
|
|
*/
|
|
|
|
|
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompositionIdentification {
|
2026-09-02 15:05:50 +02:00
|
|
|
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
|
2026-09-17 17:27:29 +02:00
|
|
|
*/
|
|
|
|
|
public function getAdditionalData(): ?array {
|
2026-09-02 15:05:50 +02:00
|
|
|
return $this->additionalData;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The deserialization information for the current model
|
|
|
|
|
* @return array<string, callable(ParseNode): void>
|
2026-09-17 17:27:29 +02:00
|
|
|
*/
|
|
|
|
|
public function getFieldDeserializers(): array {
|
2026-09-02 15:05:50 +02:00
|
|
|
$o = $this;
|
2026-09-17 17:27:29 +02:00
|
|
|
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()),
|
2026-09-02 15:05:50 +02:00
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Gets the name property value. The name property
|
2026-09-17 17:27:29 +02:00
|
|
|
* @return string|null
|
|
|
|
|
*/
|
|
|
|
|
public function getName(): ?string {
|
2026-09-02 15:05:50 +02:00
|
|
|
return $this->name;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Gets the number property value. The number property
|
2026-09-17 17:27:29 +02:00
|
|
|
* @return string|null
|
|
|
|
|
*/
|
|
|
|
|
public function getNumber(): ?string {
|
2026-09-02 15:05:50 +02:00
|
|
|
return $this->number;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Gets the source property value. The source property
|
2026-09-17 17:27:29 +02:00
|
|
|
* @return string|null
|
|
|
|
|
*/
|
|
|
|
|
public function getSource(): ?string {
|
2026-09-02 15:05:50 +02:00
|
|
|
return $this->source;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Serializes information the current object
|
2026-09-17 17:27:29 +02:00
|
|
|
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
|
|
|
|
*/
|
|
|
|
|
public function serialize(SerializationWriter $writer): void {
|
2026-09-02 15:05:50 +02:00
|
|
|
$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.
|
2026-09-17 17:27:29 +02:00
|
|
|
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
|
|
|
|
*/
|
|
|
|
|
public function setAdditionalData(?array $value): void {
|
2026-09-02 15:05:50 +02:00
|
|
|
$this->additionalData = $value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Sets the name property value. The name property
|
2026-09-17 17:27:29 +02:00
|
|
|
* @param string|null $value Value to set for the name property.
|
|
|
|
|
*/
|
|
|
|
|
public function setName(?string $value): void {
|
2026-09-02 15:05:50 +02:00
|
|
|
$this->name = $value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Sets the number property value. The number property
|
2026-09-17 17:27:29 +02:00
|
|
|
* @param string|null $value Value to set for the number property.
|
|
|
|
|
*/
|
|
|
|
|
public function setNumber(?string $value): void {
|
2026-09-02 15:05:50 +02:00
|
|
|
$this->number = $value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Sets the source property value. The source property
|
2026-09-17 17:27:29 +02:00
|
|
|
* @param string|null $value Value to set for the source property.
|
|
|
|
|
*/
|
|
|
|
|
public function setSource(?string $value): void {
|
2026-09-02 15:05:50 +02:00
|
|
|
$this->source = $value;
|
|
|
|
|
}
|
2026-09-17 17:27:29 +02:00
|
|
|
|
2026-09-02 15:05:50 +02:00
|
|
|
}
|