Refactored model classes to use a consistent namespace structure and improved inline documentation for better clarity.
92 lines
3.4 KiB
PHP
Executable file
92 lines
3.4 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 IncoPortionAmount, Inco_portionsMember1
|
|
*/
|
|
class Inco_portions implements ComposedTypeWrapper, Parsable
|
|
{
|
|
/**
|
|
* @var Inco_portionsMember1|null $inco_portionsMember1 Composed type representation for type Inco_portionsMember1
|
|
*/
|
|
private ?Inco_portionsMember1 $inco_portionsMember1 = null;
|
|
|
|
/**
|
|
* @var IncoPortionAmount|null $incoPortionAmount Composed type representation for type IncoPortionAmount
|
|
*/
|
|
private ?IncoPortionAmount $incoPortionAmount = 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_portions
|
|
*/
|
|
public static function createFromDiscriminatorValue(ParseNode $parseNode): Inco_portions {
|
|
$result = new Inco_portions();
|
|
return $result;
|
|
}
|
|
|
|
/**
|
|
* The deserialization information for the current model
|
|
* @return array<string, callable(ParseNode): void>
|
|
*/
|
|
public function getFieldDeserializers(): array {
|
|
if ($this->getIncoPortionsMember1() !== null) {
|
|
return $this->getIncoPortionsMember1()->getFieldDeserializers();
|
|
} else if ($this->getIncoPortionAmount() !== null) {
|
|
return $this->getIncoPortionAmount()->getFieldDeserializers();
|
|
}
|
|
return [];
|
|
}
|
|
|
|
/**
|
|
* Gets the IncoPortionAmount property value. Composed type representation for type IncoPortionAmount
|
|
* @return IncoPortionAmount|null
|
|
*/
|
|
public function getIncoPortionAmount(): ?IncoPortionAmount {
|
|
return $this->incoPortionAmount;
|
|
}
|
|
|
|
/**
|
|
* Gets the Inco_portionsMember1 property value. Composed type representation for type Inco_portionsMember1
|
|
* @return Inco_portionsMember1|null
|
|
*/
|
|
public function getIncoPortionsMember1(): ?Inco_portionsMember1 {
|
|
return $this->inco_portionsMember1;
|
|
}
|
|
|
|
/**
|
|
* Serializes information the current object
|
|
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
|
*/
|
|
public function serialize(SerializationWriter $writer): void {
|
|
if ($this->getIncoPortionsMember1() !== null) {
|
|
$writer->writeObjectValue(null, $this->getIncoPortionsMember1());
|
|
} else if ($this->getIncoPortionAmount() !== null) {
|
|
$writer->writeObjectValue(null, $this->getIncoPortionAmount());
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the IncoPortionAmount property value. Composed type representation for type IncoPortionAmount
|
|
* @param IncoPortionAmount|null $value Value to set for the IncoPortionAmount property.
|
|
*/
|
|
public function setIncoPortionAmount(?IncoPortionAmount $value): void {
|
|
$this->incoPortionAmount = $value;
|
|
}
|
|
|
|
/**
|
|
* Sets the Inco_portionsMember1 property value. Composed type representation for type Inco_portionsMember1
|
|
* @param Inco_portionsMember1|null $value Value to set for the Inco_portionsMember1 property.
|
|
*/
|
|
public function setIncoPortionsMember1(?Inco_portionsMember1 $value): void {
|
|
$this->inco_portionsMember1 = $value;
|
|
}
|
|
|
|
}
|