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

233 lines
6.5 KiB
PHP

<?php
declare(strict_types=1);
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
use DateTime;
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
use Microsoft\Kiota\Abstractions\Serialization\ParseNode;
use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
/**
* Fiche produit INCO projetée en format court.
*/
class IncoShort implements AdditionalDataHolder, Parsable
{
/**
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
*/
private ?array $additionalData = null;
/**
* @var DateTime|null The createdAt property
*/
private ?DateTime $createdAt = null;
/**
* @var string|null The description property
*/
private ?string $description = null;
/**
* @var string|null The incoId property
*/
private ?string $incoId = null;
/**
* @var string|null The label property
*/
private ?string $label = null;
/**
* @var string|null The name property
*/
private ?string $name = null;
/**
* @var DateTime|null The updatedAt property
*/
private ?DateTime $updatedAt = null;
/**
* Instantiates a new IncoShort and sets the default values.
*/
public function __construct()
{
$this->setAdditionalData([]);
}
/**
* 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): IncoShort
{
return new IncoShort();
}
/**
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
*
* @return array<string, mixed>|null
*/
public function getAdditionalData(): ?array
{
return $this->additionalData;
}
/**
* Gets the createdAt property value. The createdAt property
*/
public function getCreatedAt(): ?DateTime
{
return $this->createdAt;
}
/**
* Gets the description property value. The description property
*/
public function getDescription(): ?string
{
return $this->description;
}
/**
* The deserialization information for the current model
*
* @return array<string, callable(ParseNode): void>
*/
public function getFieldDeserializers(): array
{
$o = $this;
return [
'createdAt' => fn (ParseNode $n) => $o->setCreatedAt($n->getDateTimeValue()),
'description' => fn (ParseNode $n) => $o->setDescription($n->getStringValue()),
'incoId' => fn (ParseNode $n) => $o->setIncoId($n->getStringValue()),
'label' => fn (ParseNode $n) => $o->setLabel($n->getStringValue()),
'name' => fn (ParseNode $n) => $o->setName($n->getStringValue()),
'updatedAt' => fn (ParseNode $n) => $o->setUpdatedAt($n->getDateTimeValue()),
];
}
/**
* Gets the incoId property value. The incoId property
*/
public function getIncoId(): ?string
{
return $this->incoId;
}
/**
* Gets the label property value. The label property
*/
public function getLabel(): ?string
{
return $this->label;
}
/**
* Gets the name property value. The name property
*/
public function getName(): ?string
{
return $this->name;
}
/**
* Gets the updatedAt property value. The updatedAt property
*/
public function getUpdatedAt(): ?DateTime
{
return $this->updatedAt;
}
/**
* Serializes information the current object
*
* @param SerializationWriter $writer Serialization writer to use to serialize this model
*/
public function serialize(SerializationWriter $writer): void
{
$writer->writeDateTimeValue('createdAt', $this->getCreatedAt());
$writer->writeStringValue('description', $this->getDescription());
$writer->writeStringValue('incoId', $this->getIncoId());
$writer->writeStringValue('label', $this->getLabel());
$writer->writeStringValue('name', $this->getName());
$writer->writeDateTimeValue('updatedAt', $this->getUpdatedAt());
$writer->writeAdditionalData($this->getAdditionalData());
}
/**
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
*
* @param array<string,mixed> $value Value to set for the AdditionalData property.
*/
public function setAdditionalData(?array $value): void
{
$this->additionalData = $value;
}
/**
* Sets the createdAt property value. The createdAt property
*
* @param DateTime|null $value Value to set for the createdAt property.
*/
public function setCreatedAt(?DateTime $value): void
{
$this->createdAt = $value;
}
/**
* Sets the description property value. The description property
*
* @param string|null $value Value to set for the description property.
*/
public function setDescription(?string $value): void
{
$this->description = $value;
}
/**
* Sets the incoId property value. The incoId property
*
* @param string|null $value Value to set for the incoId property.
*/
public function setIncoId(?string $value): void
{
$this->incoId = $value;
}
/**
* Sets the label property value. The label property
*
* @param string|null $value Value to set for the label property.
*/
public function setLabel(?string $value): void
{
$this->label = $value;
}
/**
* Sets the name property value. The name property
*
* @param string|null $value Value to set for the name property.
*/
public function setName(?string $value): void
{
$this->name = $value;
}
/**
* Sets the updatedAt property value. The updatedAt property
*
* @param DateTime|null $value Value to set for the updatedAt property.
*/
public function setUpdatedAt(?DateTime $value): void
{
$this->updatedAt = $value;
}
}