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

101 lines
2.9 KiB
PHP

<?php
declare(strict_types=1);
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 Composed type representation for type Inco
*/
private ?Inco $inco = null;
/**
* @var IncoShort|null 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
*/
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
*/
public function getInco(): ?Inco
{
return $this->inco;
}
/**
* Gets the IncoShort property value. Composed type representation for type IncoShort
*/
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;
}
}