92 lines
3.7 KiB
PHP
92 lines
3.7 KiB
PHP
<?php
|
|
|
|
namespace UwilArcadiaApiClient\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 IncoStorageCondition, Inco_storageConditionMember1
|
|
*/
|
|
class Inco_storageCondition implements ComposedTypeWrapper, Parsable
|
|
{
|
|
/**
|
|
* @var Inco_storageConditionMember1|null $inco_storageConditionMember1 Composed type representation for type Inco_storageConditionMember1
|
|
*/
|
|
private ?Inco_storageConditionMember1 $inco_storageConditionMember1 = null;
|
|
|
|
/**
|
|
* @var IncoStorageCondition|null $incoStorageCondition Composed type representation for type IncoStorageCondition
|
|
*/
|
|
private ?IncoStorageCondition $incoStorageCondition = 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_storageCondition
|
|
*/
|
|
public static function createFromDiscriminatorValue(ParseNode $parseNode): Inco_storageCondition {
|
|
$result = new Inco_storageCondition();
|
|
return $result;
|
|
}
|
|
|
|
/**
|
|
* The deserialization information for the current model
|
|
* @return array<string, callable(ParseNode): void>
|
|
*/
|
|
public function getFieldDeserializers(): array {
|
|
if ($this->getIncoStorageConditionMember1() !== null) {
|
|
return $this->getIncoStorageConditionMember1()->getFieldDeserializers();
|
|
} else if ($this->getIncoStorageCondition() !== null) {
|
|
return $this->getIncoStorageCondition()->getFieldDeserializers();
|
|
}
|
|
return [];
|
|
}
|
|
|
|
/**
|
|
* Gets the IncoStorageCondition property value. Composed type representation for type IncoStorageCondition
|
|
* @return IncoStorageCondition|null
|
|
*/
|
|
public function getIncoStorageCondition(): ?IncoStorageCondition {
|
|
return $this->incoStorageCondition;
|
|
}
|
|
|
|
/**
|
|
* Gets the Inco_storageConditionMember1 property value. Composed type representation for type Inco_storageConditionMember1
|
|
* @return Inco_storageConditionMember1|null
|
|
*/
|
|
public function getIncoStorageConditionMember1(): ?Inco_storageConditionMember1 {
|
|
return $this->inco_storageConditionMember1;
|
|
}
|
|
|
|
/**
|
|
* Serializes information the current object
|
|
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
|
*/
|
|
public function serialize(SerializationWriter $writer): void {
|
|
if ($this->getIncoStorageConditionMember1() !== null) {
|
|
$writer->writeObjectValue(null, $this->getIncoStorageConditionMember1());
|
|
} else if ($this->getIncoStorageCondition() !== null) {
|
|
$writer->writeObjectValue(null, $this->getIncoStorageCondition());
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the IncoStorageCondition property value. Composed type representation for type IncoStorageCondition
|
|
* @param IncoStorageCondition|null $value Value to set for the IncoStorageCondition property.
|
|
*/
|
|
public function setIncoStorageCondition(?IncoStorageCondition $value): void {
|
|
$this->incoStorageCondition = $value;
|
|
}
|
|
|
|
/**
|
|
* Sets the Inco_storageConditionMember1 property value. Composed type representation for type Inco_storageConditionMember1
|
|
* @param Inco_storageConditionMember1|null $value Value to set for the Inco_storageConditionMember1 property.
|
|
*/
|
|
public function setIncoStorageConditionMember1(?Inco_storageConditionMember1 $value): void {
|
|
$this->inco_storageConditionMember1 = $value;
|
|
}
|
|
|
|
}
|