ldc-arcadia-kiota-openapi-c.../client/Models/IncoListResponse_incoSheets.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

89 lines
2.9 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\ParseNodeHelper;
use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
/**
* Composed type wrapper for classes Inco, IncoShort
*/
class IncoListResponse_incoSheets implements ComposedTypeWrapper, Parsable
{
/**
* @var Inco|null $inco Composed type representation for type Inco
*/
private ?Inco $inco = null;
/**
* @var IncoShort|null $incoShort Composed type representation for type IncoShort
*/
private ?IncoShort $incoShort = 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 IncoListResponse_incoSheets
*/
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoListResponse_incoSheets {
$result = new IncoListResponse_incoSheets();
$result->setInco(new Inco());
$result->setIncoShort(new IncoShort());
return $result;
}
/**
* The deserialization information for the current model
* @return array<string, callable(ParseNode): void>
*/
public function getFieldDeserializers(): array {
if ($this->getInco() !== null || $this->getIncoShort() !== null) {
return ParseNodeHelper::mergeDeserializersForIntersectionWrapper($this->getInco(), $this->getIncoShort());
}
return [];
}
/**
* Gets the Inco property value. Composed type representation for type Inco
* @return Inco|null
*/
public function getInco(): ?Inco {
return $this->inco;
}
/**
* Gets the IncoShort property value. Composed type representation for type IncoShort
* @return IncoShort|null
*/
public function getIncoShort(): ?IncoShort {
return $this->incoShort;
}
/**
* Serializes information the current object
* @param SerializationWriter $writer Serialization writer to use to serialize this model
*/
public function serialize(SerializationWriter $writer): void {
$writer->writeObjectValue(null, $this->getInco(), $this->getIncoShort());
}
/**
* Sets the Inco property value. Composed type representation for type Inco
* @param Inco|null $value Value to set for the Inco property.
*/
public function setInco(?Inco $value): void {
$this->inco = $value;
}
/**
* Sets the IncoShort property value. Composed type representation for type IncoShort
* @param IncoShort|null $value Value to set for the IncoShort property.
*/
public function setIncoShort(?IncoShort $value): void {
$this->incoShort = $value;
}
}