2026-09-02 15:05:50 +02:00
|
|
|
<?php
|
|
|
|
|
|
2026-09-02 15:56:36 +02:00
|
|
|
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
2026-09-02 15:05:50 +02:00
|
|
|
|
|
|
|
|
use Microsoft\Kiota\Abstractions\ApiException;
|
|
|
|
|
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
|
|
|
|
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
|
|
|
|
|
use Microsoft\Kiota\Abstractions\Serialization\ParseNode;
|
|
|
|
|
use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Format d'erreur standardisé RFC 7807 (Problem Details for HTTP APIs).
|
2026-09-17 17:27:29 +02:00
|
|
|
*/
|
|
|
|
|
class ProblemDetails extends ApiException implements AdditionalDataHolder, Parsable
|
2026-09-02 15:05:50 +02:00
|
|
|
{
|
|
|
|
|
/**
|
2026-09-17 17:27:29 +02:00
|
|
|
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
|
|
|
*/
|
2026-09-02 15:05:50 +02:00
|
|
|
private ?array $additionalData = null;
|
2026-09-17 17:27:29 +02:00
|
|
|
|
2026-09-02 15:05:50 +02:00
|
|
|
/**
|
2026-09-17 17:27:29 +02:00
|
|
|
* @var string|null $detail Explication humaine détaillée de l'erreur.
|
|
|
|
|
*/
|
2026-09-02 15:05:50 +02:00
|
|
|
private ?string $detail = null;
|
2026-09-17 17:27:29 +02:00
|
|
|
|
2026-09-02 15:05:50 +02:00
|
|
|
/**
|
2026-09-17 17:27:29 +02:00
|
|
|
* @var string|null $instance URI de l'endpoint ayant généré l'erreur.
|
|
|
|
|
*/
|
2026-09-02 15:05:50 +02:00
|
|
|
private ?string $instance = null;
|
2026-09-17 17:27:29 +02:00
|
|
|
|
2026-09-02 15:05:50 +02:00
|
|
|
/**
|
2026-09-17 17:27:29 +02:00
|
|
|
* @var int|null $status Code statut HTTP.
|
|
|
|
|
*/
|
2026-09-02 15:05:50 +02:00
|
|
|
private ?int $status = null;
|
2026-09-17 17:27:29 +02:00
|
|
|
|
2026-09-02 15:05:50 +02:00
|
|
|
/**
|
2026-09-17 17:27:29 +02:00
|
|
|
* @var string|null $title Titre court lisible résumant le problème.
|
|
|
|
|
*/
|
2026-09-02 15:05:50 +02:00
|
|
|
private ?string $title = null;
|
2026-09-17 17:27:29 +02:00
|
|
|
|
2026-09-02 15:05:50 +02:00
|
|
|
/**
|
2026-09-17 17:27:29 +02:00
|
|
|
* @var string|null $type URI identifiant le type de problème.
|
|
|
|
|
*/
|
2026-09-02 15:05:50 +02:00
|
|
|
private ?string $type = null;
|
2026-09-17 17:27:29 +02:00
|
|
|
|
2026-09-02 15:05:50 +02:00
|
|
|
/**
|
|
|
|
|
* Instantiates a new ProblemDetails and sets the default values.
|
2026-09-17 17:27:29 +02:00
|
|
|
*/
|
|
|
|
|
public function __construct() {
|
2026-09-02 15:05:50 +02:00
|
|
|
$this->setAdditionalData([]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Creates a new instance of the appropriate class based on discriminator value
|
2026-09-17 17:27:29 +02:00
|
|
|
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
|
|
|
|
* @return ProblemDetails
|
|
|
|
|
*/
|
|
|
|
|
public static function createFromDiscriminatorValue(ParseNode $parseNode): ProblemDetails {
|
2026-09-02 15:05:50 +02:00
|
|
|
return new ProblemDetails();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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
|
2026-09-17 17:27:29 +02:00
|
|
|
*/
|
|
|
|
|
public function getAdditionalData(): ?array {
|
2026-09-02 15:05:50 +02:00
|
|
|
return $this->additionalData;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Gets the detail property value. Explication humaine détaillée de l'erreur.
|
2026-09-17 17:27:29 +02:00
|
|
|
* @return string|null
|
|
|
|
|
*/
|
|
|
|
|
public function getDetail(): ?string {
|
2026-09-02 15:05:50 +02:00
|
|
|
return $this->detail;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The deserialization information for the current model
|
|
|
|
|
* @return array<string, callable(ParseNode): void>
|
2026-09-17 17:27:29 +02:00
|
|
|
*/
|
|
|
|
|
public function getFieldDeserializers(): array {
|
2026-09-02 15:05:50 +02:00
|
|
|
$o = $this;
|
2026-09-17 17:27:29 +02:00
|
|
|
return [
|
|
|
|
|
'detail' => fn(ParseNode $n) => $o->setDetail($n->getStringValue()),
|
|
|
|
|
'instance' => fn(ParseNode $n) => $o->setInstance($n->getStringValue()),
|
|
|
|
|
'status' => fn(ParseNode $n) => $o->setStatus($n->getIntegerValue()),
|
|
|
|
|
'title' => fn(ParseNode $n) => $o->setTitle($n->getStringValue()),
|
|
|
|
|
'type' => fn(ParseNode $n) => $o->setType($n->getStringValue()),
|
2026-09-02 15:05:50 +02:00
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Gets the instance property value. URI de l'endpoint ayant généré l'erreur.
|
2026-09-17 17:27:29 +02:00
|
|
|
* @return string|null
|
|
|
|
|
*/
|
|
|
|
|
public function getInstance(): ?string {
|
2026-09-02 15:05:50 +02:00
|
|
|
return $this->instance;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The primary error message.
|
2026-09-17 17:27:29 +02:00
|
|
|
* @return string
|
|
|
|
|
*/
|
|
|
|
|
public function getPrimaryErrorMessage(): string {
|
2026-09-02 15:05:50 +02:00
|
|
|
return parent::getMessage();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Gets the status property value. Code statut HTTP.
|
2026-09-17 17:27:29 +02:00
|
|
|
* @return int|null
|
|
|
|
|
*/
|
|
|
|
|
public function getStatus(): ?int {
|
2026-09-02 15:05:50 +02:00
|
|
|
return $this->status;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Gets the title property value. Titre court lisible résumant le problème.
|
2026-09-17 17:27:29 +02:00
|
|
|
* @return string|null
|
|
|
|
|
*/
|
|
|
|
|
public function getTitle(): ?string {
|
2026-09-02 15:05:50 +02:00
|
|
|
return $this->title;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Gets the type property value. URI identifiant le type de problème.
|
2026-09-17 17:27:29 +02:00
|
|
|
* @return string|null
|
|
|
|
|
*/
|
|
|
|
|
public function getType(): ?string {
|
2026-09-02 15:05:50 +02:00
|
|
|
return $this->type;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Serializes information the current object
|
2026-09-17 17:27:29 +02:00
|
|
|
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
|
|
|
|
*/
|
|
|
|
|
public function serialize(SerializationWriter $writer): void {
|
2026-09-02 15:05:50 +02:00
|
|
|
$writer->writeStringValue('detail', $this->getDetail());
|
|
|
|
|
$writer->writeStringValue('instance', $this->getInstance());
|
|
|
|
|
$writer->writeIntegerValue('status', $this->getStatus());
|
|
|
|
|
$writer->writeStringValue('title', $this->getTitle());
|
|
|
|
|
$writer->writeStringValue('type', $this->getType());
|
|
|
|
|
$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.
|
2026-09-17 17:27:29 +02:00
|
|
|
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
|
|
|
|
*/
|
|
|
|
|
public function setAdditionalData(?array $value): void {
|
2026-09-02 15:05:50 +02:00
|
|
|
$this->additionalData = $value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Sets the detail property value. Explication humaine détaillée de l'erreur.
|
2026-09-17 17:27:29 +02:00
|
|
|
* @param string|null $value Value to set for the detail property.
|
|
|
|
|
*/
|
|
|
|
|
public function setDetail(?string $value): void {
|
2026-09-02 15:05:50 +02:00
|
|
|
$this->detail = $value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Sets the instance property value. URI de l'endpoint ayant généré l'erreur.
|
2026-09-17 17:27:29 +02:00
|
|
|
* @param string|null $value Value to set for the instance property.
|
|
|
|
|
*/
|
|
|
|
|
public function setInstance(?string $value): void {
|
2026-09-02 15:05:50 +02:00
|
|
|
$this->instance = $value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Sets the status property value. Code statut HTTP.
|
2026-09-17 17:27:29 +02:00
|
|
|
* @param int|null $value Value to set for the status property.
|
|
|
|
|
*/
|
|
|
|
|
public function setStatus(?int $value): void {
|
2026-09-02 15:05:50 +02:00
|
|
|
$this->status = $value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Sets the title property value. Titre court lisible résumant le problème.
|
2026-09-17 17:27:29 +02:00
|
|
|
* @param string|null $value Value to set for the title property.
|
|
|
|
|
*/
|
|
|
|
|
public function setTitle(?string $value): void {
|
2026-09-02 15:05:50 +02:00
|
|
|
$this->title = $value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Sets the type property value. URI identifiant le type de problème.
|
2026-09-17 17:27:29 +02:00
|
|
|
* @param string|null $value Value to set for the type property.
|
|
|
|
|
*/
|
|
|
|
|
public function setType(?string $value): void {
|
2026-09-02 15:05:50 +02:00
|
|
|
$this->type = $value;
|
|
|
|
|
}
|
2026-09-17 17:27:29 +02:00
|
|
|
|
2026-09-02 15:05:50 +02:00
|
|
|
}
|