|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ private ?array $additionalData = null; /** * @var string|null $arcadiaId Identifiant numérique amont Arcadia. */ private ?string $arcadiaId = null; /** * @var string|null $code Code public unique trigramme + 2 chiffres. */ private ?string $code = null; /** * @var DateTime|null $createdAt Date et heure de création (ISO 8601). */ private ?DateTime $createdAt = null; /** * @var string|null $name Nom / libellé de la marque. */ private ?string $name = null; /** * Instantiates a new Brand 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 * @return Brand */ public static function createFromDiscriminatorValue(ParseNode $parseNode): Brand { return new Brand(); } /** * 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|null */ public function getAdditionalData(): ?array { return $this->additionalData; } /** * Gets the arcadiaId property value. Identifiant numérique amont Arcadia. * @return string|null */ public function getArcadiaId(): ?string { return $this->arcadiaId; } /** * Gets the code property value. Code public unique trigramme + 2 chiffres. * @return string|null */ public function getCode(): ?string { return $this->code; } /** * Gets the createdAt property value. Date et heure de création (ISO 8601). * @return DateTime|null */ public function getCreatedAt(): ?DateTime { return $this->createdAt; } /** * The deserialization information for the current model * @return array */ public function getFieldDeserializers(): array { $o = $this; return [ 'arcadiaId' => fn(ParseNode $n) => $o->setArcadiaId($n->getStringValue()), 'code' => fn(ParseNode $n) => $o->setCode($n->getStringValue()), 'createdAt' => fn(ParseNode $n) => $o->setCreatedAt($n->getDateTimeValue()), 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()), ]; } /** * Gets the name property value. Nom / libellé de la marque. * @return string|null */ public function getName(): ?string { return $this->name; } /** * Serializes information the current object * @param SerializationWriter $writer Serialization writer to use to serialize this model */ public function serialize(SerializationWriter $writer): void { $writer->writeStringValue('arcadiaId', $this->getArcadiaId()); $writer->writeStringValue('code', $this->getCode()); $writer->writeDateTimeValue('createdAt', $this->getCreatedAt()); $writer->writeStringValue('name', $this->getName()); $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 $value Value to set for the AdditionalData property. */ public function setAdditionalData(?array $value): void { $this->additionalData = $value; } /** * Sets the arcadiaId property value. Identifiant numérique amont Arcadia. * @param string|null $value Value to set for the arcadiaId property. */ public function setArcadiaId(?string $value): void { $this->arcadiaId = $value; } /** * Sets the code property value. Code public unique trigramme + 2 chiffres. * @param string|null $value Value to set for the code property. */ public function setCode(?string $value): void { $this->code = $value; } /** * Sets the createdAt property value. Date et heure de création (ISO 8601). * @param DateTime|null $value Value to set for the createdAt property. */ public function setCreatedAt(?DateTime $value): void { $this->createdAt = $value; } /** * Sets the name property value. Nom / libellé de la marque. * @param string|null $value Value to set for the name property. */ public function setName(?string $value): void { $this->name = $value; } }