ldc-arcadia-kiota-openapi-c.../client/Models/Inco_weight.php
Jérémy Munsch 73c6ba4f56
refactor(models): update namespaces and improve doc comments
Refactored model classes to use a consistent namespace structure and improved inline documentation for better clarity.
2026-09-16 12:24:44 +02:00

92 lines
3.2 KiB
PHP
Executable file

<?php
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
use Microsoft\Kiota\Abstractions\Serialization\ComposedTypeWrapper;
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
use Microsoft\Kiota\Abstractions\Serialization\ParseNode;
use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
/**
* Composed type wrapper for classes IncoWeight, Inco_weightMember1
*/
class Inco_weight implements ComposedTypeWrapper, Parsable
{
/**
* @var Inco_weightMember1|null $inco_weightMember1 Composed type representation for type Inco_weightMember1
*/
private ?Inco_weightMember1 $inco_weightMember1 = null;
/**
* @var IncoWeight|null $incoWeight Composed type representation for type IncoWeight
*/
private ?IncoWeight $incoWeight = null;
/**
* 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 Inco_weight
*/
public static function createFromDiscriminatorValue(ParseNode $parseNode): Inco_weight {
$result = new Inco_weight();
return $result;
}
/**
* The deserialization information for the current model
* @return array<string, callable(ParseNode): void>
*/
public function getFieldDeserializers(): array {
if ($this->getIncoWeightMember1() !== null) {
return $this->getIncoWeightMember1()->getFieldDeserializers();
} else if ($this->getIncoWeight() !== null) {
return $this->getIncoWeight()->getFieldDeserializers();
}
return [];
}
/**
* Gets the IncoWeight property value. Composed type representation for type IncoWeight
* @return IncoWeight|null
*/
public function getIncoWeight(): ?IncoWeight {
return $this->incoWeight;
}
/**
* Gets the Inco_weightMember1 property value. Composed type representation for type Inco_weightMember1
* @return Inco_weightMember1|null
*/
public function getIncoWeightMember1(): ?Inco_weightMember1 {
return $this->inco_weightMember1;
}
/**
* Serializes information the current object
* @param SerializationWriter $writer Serialization writer to use to serialize this model
*/
public function serialize(SerializationWriter $writer): void {
if ($this->getIncoWeightMember1() !== null) {
$writer->writeObjectValue(null, $this->getIncoWeightMember1());
} else if ($this->getIncoWeight() !== null) {
$writer->writeObjectValue(null, $this->getIncoWeight());
}
}
/**
* Sets the IncoWeight property value. Composed type representation for type IncoWeight
* @param IncoWeight|null $value Value to set for the IncoWeight property.
*/
public function setIncoWeight(?IncoWeight $value): void {
$this->incoWeight = $value;
}
/**
* Sets the Inco_weightMember1 property value. Composed type representation for type Inco_weightMember1
* @param Inco_weightMember1|null $value Value to set for the Inco_weightMember1 property.
*/
public function setIncoWeightMember1(?Inco_weightMember1 $value): void {
$this->inco_weightMember1 = $value;
}
}