From dbed9bf30597b38e84c8b24597bbf5fce3ffbdc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Wed, 16 Sep 2026 12:18:36 +0200 Subject: [PATCH] chore(kiota): regenerate Kiota client models and request builders from updated OpenAPI spec --- client/.kiota.log | 0 client/ApiClient.php | 43 +- client/Brands/BrandsRequestBuilder.php | 82 +- ...BrandsRequestBuilderGetQueryParameters.php | 51 +- ...sRequestBuilderGetRequestConfiguration.php | 40 +- .../Item/WithBrandCodeItemRequestBuilder.php | 72 +- ...mRequestBuilderGetRequestConfiguration.php | 17 +- client/Employees/EmployeesRequestBuilder.php | 82 +- ...loyeesRequestBuilderGetQueryParameters.php | 119 +- ...sRequestBuilderGetRequestConfiguration.php | 54 +- .../Employees/GetSortByQueryParameterType.php | 22 +- .../GetSortDirectionQueryParameterType.php | 10 +- .../Item/WithEmployeeItemRequestBuilder.php | 72 +- ...mRequestBuilderGetRequestConfiguration.php | 17 +- client/Health/HealthRequestBuilder.php | 58 +- ...hRequestBuilderGetRequestConfiguration.php | 17 +- .../GetSortByQueryParameterType.php | 13 +- .../GetSortDirectionQueryParameterType.php | 10 +- .../IncoSheets/IncoSheetsRequestBuilder.php | 89 +- ...SheetsRequestBuilderGetQueryParameters.php | 101 +- ...sRequestBuilderGetRequestConfiguration.php | 50 +- .../Composition/CompositionRequestBuilder.php | 72 +- ...nRequestBuilderGetRequestConfiguration.php | 17 +- .../Item/WithIncoItemRequestBuilder.php | 79 +- ...mRequestBuilderGetRequestConfiguration.php | 17 +- .../Search/SearchRequestBuilder.php | 70 +- ...SearchRequestBuilderGetQueryParameters.php | 41 +- ...hRequestBuilderGetRequestConfiguration.php | 38 +- client/Models/Brand.php | 146 +- client/Models/BrandItemResponse.php | 80 +- client/Models/BrandListResponse.php | 102 +- client/Models/Employee.php | 300 ++-- client/Models/EmployeeItemResponse.php | 80 +- client/Models/EmployeeListResponse.php | 102 +- client/Models/EnergyValues.php | 124 +- client/Models/FruitAndNutAmount.php | 124 +- client/Models/HealthCheckResponse.php | 131 +- client/Models/HealthCheckResponse_checks.php | 58 +- client/Models/HealthCheckResponse_status.php | 10 +- client/Models/Inco.php | 528 ++++--- client/Models/IncoAdditive.php | 102 +- client/Models/IncoAllegations.php | 138 +- client/Models/IncoBrand.php | 102 +- client/Models/IncoCompo.php | 410 ++--- client/Models/IncoCompoAminoAcids.php | 124 +- .../Models/IncoCompoCarbohydratesDetail.php | 366 +++-- client/Models/IncoCompoEnergy.php | 102 +- client/Models/IncoCompoFattyAcids.php | 1356 +++++++++-------- .../Models/IncoCompoFreshProduceAndNuts.php | 146 +- client/Models/IncoCompoItemResponse.php | 80 +- client/Models/IncoCompoMinerals.php | 388 ++--- client/Models/IncoCompoNutriScore.php | 278 ++-- client/Models/IncoCompoNutriScorePoints.php | 212 +-- .../Models/IncoCompoPortionMacronutrients.php | 234 +-- client/Models/IncoCompoReferenceIntakes.php | 278 ++-- .../IncoCompoReferenceMacronutrients.php | 234 +-- client/Models/IncoCompoSpecialCompounds.php | 146 +- client/Models/IncoCompoVitamins.php | 256 ++-- .../Models/IncoCompositionIdentification.php | 124 +- client/Models/IncoIngredients.php | 58 +- client/Models/IncoItemResponse.php | 80 +- client/Models/IncoListResponse.php | 102 +- client/Models/IncoListResponse_incoSheets.php | 72 +- client/Models/IncoNutriscore.php | 80 +- client/Models/IncoNutriscore_grade.php | 19 +- client/Models/IncoPortionAmount.php | 124 +- client/Models/IncoShort.php | 193 ++- client/Models/IncoStorageCondition.php | 80 +- client/Models/IncoWeight.php | 124 +- client/Models/Inco_nutriscore.php | 92 -- client/Models/Inco_nutriscoreMember1.php | 67 - client/Models/Inco_portions.php | 92 -- client/Models/Inco_portionsMember1.php | 67 - client/Models/Inco_storageCondition.php | 92 -- .../Models/Inco_storageConditionMember1.php | 67 - client/Models/Inco_weight.php | 92 -- client/Models/Inco_weightMember1.php | 67 - client/Models/InvalidParamItem.php | 102 +- client/Models/NutrientValue.php | 102 +- client/Models/PaginationLinks.php | 168 +- client/Models/PaginationMeta.php | 168 +- client/Models/PercentageValue.php | 80 +- client/Models/ProblemDetails.php | 175 ++- .../Models/ValidationErrorProblemDetails.php | 175 ++- client/kiota-lock.json | 4 +- 85 files changed, 5720 insertions(+), 5036 deletions(-) mode change 100755 => 100644 client/.kiota.log mode change 100755 => 100644 client/ApiClient.php mode change 100755 => 100644 client/Brands/BrandsRequestBuilder.php mode change 100755 => 100644 client/Brands/BrandsRequestBuilderGetQueryParameters.php mode change 100755 => 100644 client/Brands/BrandsRequestBuilderGetRequestConfiguration.php mode change 100755 => 100644 client/Brands/Item/WithBrandCodeItemRequestBuilder.php mode change 100755 => 100644 client/Brands/Item/WithBrandCodeItemRequestBuilderGetRequestConfiguration.php mode change 100755 => 100644 client/Employees/EmployeesRequestBuilder.php mode change 100755 => 100644 client/Employees/EmployeesRequestBuilderGetQueryParameters.php mode change 100755 => 100644 client/Employees/EmployeesRequestBuilderGetRequestConfiguration.php mode change 100755 => 100644 client/Employees/GetSortByQueryParameterType.php mode change 100755 => 100644 client/Employees/GetSortDirectionQueryParameterType.php mode change 100755 => 100644 client/Employees/Item/WithEmployeeItemRequestBuilder.php mode change 100755 => 100644 client/Employees/Item/WithEmployeeItemRequestBuilderGetRequestConfiguration.php mode change 100755 => 100644 client/Health/HealthRequestBuilder.php mode change 100755 => 100644 client/Health/HealthRequestBuilderGetRequestConfiguration.php mode change 100755 => 100644 client/IncoSheets/GetSortByQueryParameterType.php mode change 100755 => 100644 client/IncoSheets/GetSortDirectionQueryParameterType.php mode change 100755 => 100644 client/IncoSheets/IncoSheetsRequestBuilder.php mode change 100755 => 100644 client/IncoSheets/IncoSheetsRequestBuilderGetQueryParameters.php mode change 100755 => 100644 client/IncoSheets/IncoSheetsRequestBuilderGetRequestConfiguration.php mode change 100755 => 100644 client/IncoSheets/Item/Composition/CompositionRequestBuilder.php mode change 100755 => 100644 client/IncoSheets/Item/Composition/CompositionRequestBuilderGetRequestConfiguration.php mode change 100755 => 100644 client/IncoSheets/Item/WithIncoItemRequestBuilder.php mode change 100755 => 100644 client/IncoSheets/Item/WithIncoItemRequestBuilderGetRequestConfiguration.php mode change 100755 => 100644 client/IncoSheets/Search/SearchRequestBuilder.php mode change 100755 => 100644 client/IncoSheets/Search/SearchRequestBuilderGetQueryParameters.php mode change 100755 => 100644 client/IncoSheets/Search/SearchRequestBuilderGetRequestConfiguration.php mode change 100755 => 100644 client/Models/Brand.php mode change 100755 => 100644 client/Models/BrandItemResponse.php mode change 100755 => 100644 client/Models/BrandListResponse.php mode change 100755 => 100644 client/Models/Employee.php mode change 100755 => 100644 client/Models/EmployeeItemResponse.php mode change 100755 => 100644 client/Models/EmployeeListResponse.php mode change 100755 => 100644 client/Models/EnergyValues.php mode change 100755 => 100644 client/Models/FruitAndNutAmount.php mode change 100755 => 100644 client/Models/HealthCheckResponse.php mode change 100755 => 100644 client/Models/HealthCheckResponse_checks.php mode change 100755 => 100644 client/Models/HealthCheckResponse_status.php mode change 100755 => 100644 client/Models/Inco.php mode change 100755 => 100644 client/Models/IncoAdditive.php mode change 100755 => 100644 client/Models/IncoAllegations.php mode change 100755 => 100644 client/Models/IncoBrand.php mode change 100755 => 100644 client/Models/IncoCompo.php mode change 100755 => 100644 client/Models/IncoCompoAminoAcids.php mode change 100755 => 100644 client/Models/IncoCompoCarbohydratesDetail.php mode change 100755 => 100644 client/Models/IncoCompoEnergy.php mode change 100755 => 100644 client/Models/IncoCompoFattyAcids.php mode change 100755 => 100644 client/Models/IncoCompoFreshProduceAndNuts.php mode change 100755 => 100644 client/Models/IncoCompoItemResponse.php mode change 100755 => 100644 client/Models/IncoCompoMinerals.php mode change 100755 => 100644 client/Models/IncoCompoNutriScore.php mode change 100755 => 100644 client/Models/IncoCompoNutriScorePoints.php mode change 100755 => 100644 client/Models/IncoCompoPortionMacronutrients.php mode change 100755 => 100644 client/Models/IncoCompoReferenceIntakes.php mode change 100755 => 100644 client/Models/IncoCompoReferenceMacronutrients.php mode change 100755 => 100644 client/Models/IncoCompoSpecialCompounds.php mode change 100755 => 100644 client/Models/IncoCompoVitamins.php mode change 100755 => 100644 client/Models/IncoCompositionIdentification.php mode change 100755 => 100644 client/Models/IncoIngredients.php mode change 100755 => 100644 client/Models/IncoItemResponse.php mode change 100755 => 100644 client/Models/IncoListResponse.php mode change 100755 => 100644 client/Models/IncoListResponse_incoSheets.php mode change 100755 => 100644 client/Models/IncoNutriscore.php mode change 100755 => 100644 client/Models/IncoNutriscore_grade.php mode change 100755 => 100644 client/Models/IncoPortionAmount.php mode change 100755 => 100644 client/Models/IncoShort.php mode change 100755 => 100644 client/Models/IncoStorageCondition.php mode change 100755 => 100644 client/Models/IncoWeight.php delete mode 100755 client/Models/Inco_nutriscore.php delete mode 100755 client/Models/Inco_nutriscoreMember1.php delete mode 100755 client/Models/Inco_portions.php delete mode 100755 client/Models/Inco_portionsMember1.php delete mode 100755 client/Models/Inco_storageCondition.php delete mode 100755 client/Models/Inco_storageConditionMember1.php delete mode 100755 client/Models/Inco_weight.php delete mode 100755 client/Models/Inco_weightMember1.php mode change 100755 => 100644 client/Models/InvalidParamItem.php mode change 100755 => 100644 client/Models/NutrientValue.php mode change 100755 => 100644 client/Models/PaginationLinks.php mode change 100755 => 100644 client/Models/PaginationMeta.php mode change 100755 => 100644 client/Models/PercentageValue.php mode change 100755 => 100644 client/Models/ProblemDetails.php mode change 100755 => 100644 client/Models/ValidationErrorProblemDetails.php mode change 100755 => 100644 client/kiota-lock.json diff --git a/client/.kiota.log b/client/.kiota.log old mode 100755 new mode 100644 diff --git a/client/ApiClient.php b/client/ApiClient.php old mode 100755 new mode 100644 index a88d5ca..136b77a --- a/client/ApiClient.php +++ b/client/ApiClient.php @@ -1,5 +1,7 @@ pathParameters, $this->requestAdapter); } - + /** * The employees property - */ - public function employees(): EmployeesRequestBuilder { + */ + public function employees(): EmployeesRequestBuilder + { return new EmployeesRequestBuilder($this->pathParameters, $this->requestAdapter); } - + /** * The health property - */ - public function health(): HealthRequestBuilder { + */ + public function health(): HealthRequestBuilder + { return new HealthRequestBuilder($this->pathParameters, $this->requestAdapter); } - + /** * The incoSheets property - */ - public function incoSheets(): IncoSheetsRequestBuilder { + */ + public function incoSheets(): IncoSheetsRequestBuilder + { return new IncoSheetsRequestBuilder($this->pathParameters, $this->requestAdapter); } - + /** * Instantiates a new ApiClient and sets the default values. - * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. - */ - public function __construct(RequestAdapter $requestAdapter) { + * + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct(RequestAdapter $requestAdapter) + { parent::__construct($requestAdapter, [], '{+baseurl}'); ApiClientBuilder::registerDefaultSerializer(JsonSerializationWriterFactory::class); ApiClientBuilder::registerDefaultSerializer(TextSerializationWriterFactory::class); @@ -68,5 +76,4 @@ class ApiClient extends BaseRequestBuilder } $this->pathParameters['baseurl'] = $this->requestAdapter->getBaseUrl(); } - } diff --git a/client/Brands/BrandsRequestBuilder.php b/client/Brands/BrandsRequestBuilder.php old mode 100755 new mode 100644 index 8e28774..1c9d8bb --- a/client/Brands/BrandsRequestBuilder.php +++ b/client/Brands/BrandsRequestBuilder.php @@ -1,5 +1,7 @@ pathParameters; + * + * @param string $brandCode Code public unique trigramme + 2 chiffres de la marque (ex. LGL01). + */ + public function byBrandCode(string $brandCode): WithBrandCodeItemRequestBuilder + { + $urlTplParams = $this->pathParameters; $urlTplParams['brandCode'] = $brandCode; + return new WithBrandCodeItemRequestBuilder($urlTplParams, $this->requestAdapter); } /** * Instantiates a new BrandsRequestBuilder and sets the default values. - * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. - * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. - */ - public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + * + * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) + { parent::__construct($requestAdapter, [], '{+baseurl}/brands{?limit*,offset*,page*,pageSize*}'); if (is_array($pathParametersOrRawUrl)) { $this->pathParameters = $pathParametersOrRawUrl; @@ -45,34 +51,39 @@ class BrandsRequestBuilder extends BaseRequestBuilder /** * Retourne la liste de toutes les marques connues du système Arcadia.Les marques non encore enregistrées localement sont automatiquement initialiséeset pourvues d'un code public unique (trigramme + 2 chiffres). - * @param BrandsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * + * @param BrandsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise + * * @throws Exception - */ - public function get(?BrandsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { - $requestInfo = $this->toGetRequestInformation($requestConfiguration); + */ + public function get(?BrandsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise + { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); $errorMappings = [ - '400' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '401' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '403' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'], - '429' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '500' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '503' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '400' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '401' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '403' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'], + '429' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '500' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '503' => [ProblemDetails::class, 'createFromDiscriminatorValue'], ]; + return $this->requestAdapter->sendAsync($requestInfo, [BrandListResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } /** * Retourne la liste de toutes les marques connues du système Arcadia.Les marques non encore enregistrées localement sont automatiquement initialiséeset pourvues d'un code public unique (trigramme + 2 chiffres). - * @param BrandsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return RequestInformation - */ - public function toGetRequestInformation(?BrandsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { - $requestInfo = new RequestInformation(); - $requestInfo->urlTemplate = $this->urlTemplate; + * + * @param BrandsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public function toGetRequestInformation(?BrandsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation + { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; - $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->httpMethod = HttpMethod::GET; if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); if ($requestConfiguration->queryParameters !== null) { @@ -80,17 +91,18 @@ class BrandsRequestBuilder extends BaseRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->tryAddHeader('Accept', 'application/json'); + return $requestInfo; } /** * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param string $rawUrl The raw URL to use for the request builder. - * @return BrandsRequestBuilder - */ - public function withUrl(string $rawUrl): BrandsRequestBuilder { + * + * @param string $rawUrl The raw URL to use for the request builder. + */ + public function withUrl(string $rawUrl): BrandsRequestBuilder + { return new BrandsRequestBuilder($rawUrl, $this->requestAdapter); } - } diff --git a/client/Brands/BrandsRequestBuilderGetQueryParameters.php b/client/Brands/BrandsRequestBuilderGetQueryParameters.php old mode 100755 new mode 100644 index d0bf376..82a2cf6 --- a/client/Brands/BrandsRequestBuilderGetQueryParameters.php +++ b/client/Brands/BrandsRequestBuilderGetQueryParameters.php @@ -1,44 +1,47 @@ limit = $limit; - $this->offset = $offset; - $this->page = $page; + * + * @param int|null $limit Nombre maximal d'enregistrements pour la pagination par offset. Les valeurs hors bornes sont silencieusement corrigées par l'API. + * @param int|null $offset Décalage d'index pour la pagination basée sur l'offset. Les valeurs négatives sont silencieusement corrigées à 0. + * @param int|null $page Numéro de page (1-based). Les valeurs hors bornes sont silencieusement corrigées par l'API. + * @param int|null $pageSize Nombre d'éléments par page (max 10000). Les valeurs hors bornes sont silencieusement corrigées par l'API. + */ + public function __construct(?int $limit = null, ?int $offset = null, ?int $page = null, ?int $pageSize = null) + { + $this->limit = $limit; + $this->offset = $offset; + $this->page = $page; $this->pageSize = $pageSize; } - } diff --git a/client/Brands/BrandsRequestBuilderGetRequestConfiguration.php b/client/Brands/BrandsRequestBuilderGetRequestConfiguration.php old mode 100755 new mode 100644 index 1259b17..6ea5793 --- a/client/Brands/BrandsRequestBuilderGetRequestConfiguration.php +++ b/client/Brands/BrandsRequestBuilderGetRequestConfiguration.php @@ -1,5 +1,7 @@ |string>|null $headers Request headers - * @param array|null $options Request options - * @param BrandsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters - */ - public function __construct(?array $headers = null, ?array $options = null, ?BrandsRequestBuilderGetQueryParameters $queryParameters = null) { + * + * @param array|string>|null $headers Request headers + * @param array|null $options Request options + * @param BrandsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?BrandsRequestBuilderGetQueryParameters $queryParameters = null) + { parent::__construct($headers ?? [], $options ?? []); $this->queryParameters = $queryParameters; } /** * Instantiates a new BrandsRequestBuilderGetQueryParameters. - * @param int|null $limit Nombre maximal d'enregistrements pour la pagination par offset. Les valeurs hors bornes sont silencieusement corrigées par l'API. - * @param int|null $offset Décalage d'index pour la pagination basée sur l'offset. Les valeurs négatives sont silencieusement corrigées à 0. - * @param int|null $page Numéro de page (1-based). Les valeurs hors bornes sont silencieusement corrigées par l'API. - * @param int|null $pageSize Nombre d'éléments par page (max 10000). Les valeurs hors bornes sont silencieusement corrigées par l'API. - * @return BrandsRequestBuilderGetQueryParameters - */ - public static function createQueryParameters(?int $limit = null, ?int $offset = null, ?int $page = null, ?int $pageSize = null): BrandsRequestBuilderGetQueryParameters { + * + * @param int|null $limit Nombre maximal d'enregistrements pour la pagination par offset. Les valeurs hors bornes sont silencieusement corrigées par l'API. + * @param int|null $offset Décalage d'index pour la pagination basée sur l'offset. Les valeurs négatives sont silencieusement corrigées à 0. + * @param int|null $page Numéro de page (1-based). Les valeurs hors bornes sont silencieusement corrigées par l'API. + * @param int|null $pageSize Nombre d'éléments par page (max 10000). Les valeurs hors bornes sont silencieusement corrigées par l'API. + */ + public static function createQueryParameters(?int $limit = null, ?int $offset = null, ?int $page = null, ?int $pageSize = null): BrandsRequestBuilderGetQueryParameters + { return new BrandsRequestBuilderGetQueryParameters($limit, $offset, $page, $pageSize); } - } diff --git a/client/Brands/Item/WithBrandCodeItemRequestBuilder.php b/client/Brands/Item/WithBrandCodeItemRequestBuilder.php old mode 100755 new mode 100644 index cbbf1a3..568efe9 --- a/client/Brands/Item/WithBrandCodeItemRequestBuilder.php +++ b/client/Brands/Item/WithBrandCodeItemRequestBuilder.php @@ -1,5 +1,7 @@ |string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. - * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. - */ - public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + * + * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) + { parent::__construct($requestAdapter, [], '{+baseurl}/brands/{brandCode}'); if (is_array($pathParametersOrRawUrl)) { $this->pathParameters = $pathParametersOrRawUrl; @@ -33,50 +37,56 @@ class WithBrandCodeItemRequestBuilder extends BaseRequestBuilder /** * Retourne la fiche d'une marque spécifiée par son code public (ex: LGL01). - * @param WithBrandCodeItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * + * @param WithBrandCodeItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise + * * @throws Exception - */ - public function get(?WithBrandCodeItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { - $requestInfo = $this->toGetRequestInformation($requestConfiguration); + */ + public function get(?WithBrandCodeItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise + { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); $errorMappings = [ - '400' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '401' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '403' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '404' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'], - '429' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '500' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '503' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '400' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '401' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '403' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '404' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'], + '429' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '500' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '503' => [ProblemDetails::class, 'createFromDiscriminatorValue'], ]; + return $this->requestAdapter->sendAsync($requestInfo, [BrandItemResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } /** * Retourne la fiche d'une marque spécifiée par son code public (ex: LGL01). - * @param WithBrandCodeItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return RequestInformation - */ - public function toGetRequestInformation(?WithBrandCodeItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { - $requestInfo = new RequestInformation(); - $requestInfo->urlTemplate = $this->urlTemplate; + * + * @param WithBrandCodeItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public function toGetRequestInformation(?WithBrandCodeItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation + { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; - $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->httpMethod = HttpMethod::GET; if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->tryAddHeader('Accept', 'application/json'); + return $requestInfo; } /** * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param string $rawUrl The raw URL to use for the request builder. - * @return WithBrandCodeItemRequestBuilder - */ - public function withUrl(string $rawUrl): WithBrandCodeItemRequestBuilder { + * + * @param string $rawUrl The raw URL to use for the request builder. + */ + public function withUrl(string $rawUrl): WithBrandCodeItemRequestBuilder + { return new WithBrandCodeItemRequestBuilder($rawUrl, $this->requestAdapter); } - } diff --git a/client/Brands/Item/WithBrandCodeItemRequestBuilderGetRequestConfiguration.php b/client/Brands/Item/WithBrandCodeItemRequestBuilderGetRequestConfiguration.php old mode 100755 new mode 100644 index cc4262c..160a4f3 --- a/client/Brands/Item/WithBrandCodeItemRequestBuilderGetRequestConfiguration.php +++ b/client/Brands/Item/WithBrandCodeItemRequestBuilderGetRequestConfiguration.php @@ -1,5 +1,7 @@ |string>|null $headers Request headers - * @param array|null $options Request options - */ - public function __construct(?array $headers = null, ?array $options = null) { + * + * @param array|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) + { parent::__construct($headers ?? [], $options ?? []); } - } diff --git a/client/Employees/EmployeesRequestBuilder.php b/client/Employees/EmployeesRequestBuilder.php old mode 100755 new mode 100644 index 48b4ece..1e1ede1 --- a/client/Employees/EmployeesRequestBuilder.php +++ b/client/Employees/EmployeesRequestBuilder.php @@ -1,5 +1,7 @@ pathParameters; + * + * @param string $employeeId Matricule public unique de l'employé (7 ou 8 chiffres). + */ + public function byEmployeeId(string $employeeId): WithEmployeeItemRequestBuilder + { + $urlTplParams = $this->pathParameters; $urlTplParams['employeeId'] = $employeeId; + return new WithEmployeeItemRequestBuilder($urlTplParams, $this->requestAdapter); } /** * Instantiates a new EmployeesRequestBuilder and sets the default values. - * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. - * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. - */ - public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + * + * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) + { parent::__construct($requestAdapter, [], '{+baseurl}/employees{?establishment*,limit*,offset*,page*,pageSize*,serviceId*,since*,siteId*,siteIds*,sortBy*,sortDirection*}'); if (is_array($pathParametersOrRawUrl)) { $this->pathParameters = $pathParametersOrRawUrl; @@ -45,34 +51,39 @@ class EmployeesRequestBuilder extends BaseRequestBuilder /** * Retourne la liste paginée des employés du système Arcadia.Prend en charge le filtrage par date de modification (`since`), code établissement (`establishment`),code site (`siteId`), code service (`serviceId`), ainsi que le tri et la pagination HATEOAS. - * @param EmployeesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * + * @param EmployeesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise + * * @throws Exception - */ - public function get(?EmployeesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { - $requestInfo = $this->toGetRequestInformation($requestConfiguration); + */ + public function get(?EmployeesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise + { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); $errorMappings = [ - '400' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '401' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '403' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'], - '429' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '500' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '503' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '400' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '401' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '403' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'], + '429' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '500' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '503' => [ProblemDetails::class, 'createFromDiscriminatorValue'], ]; + return $this->requestAdapter->sendAsync($requestInfo, [EmployeeListResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } /** * Retourne la liste paginée des employés du système Arcadia.Prend en charge le filtrage par date de modification (`since`), code établissement (`establishment`),code site (`siteId`), code service (`serviceId`), ainsi que le tri et la pagination HATEOAS. - * @param EmployeesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return RequestInformation - */ - public function toGetRequestInformation(?EmployeesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { - $requestInfo = new RequestInformation(); - $requestInfo->urlTemplate = $this->urlTemplate; + * + * @param EmployeesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public function toGetRequestInformation(?EmployeesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation + { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; - $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->httpMethod = HttpMethod::GET; if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); if ($requestConfiguration->queryParameters !== null) { @@ -80,17 +91,18 @@ class EmployeesRequestBuilder extends BaseRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->tryAddHeader('Accept', 'application/json'); + return $requestInfo; } /** * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param string $rawUrl The raw URL to use for the request builder. - * @return EmployeesRequestBuilder - */ - public function withUrl(string $rawUrl): EmployeesRequestBuilder { + * + * @param string $rawUrl The raw URL to use for the request builder. + */ + public function withUrl(string $rawUrl): EmployeesRequestBuilder + { return new EmployeesRequestBuilder($rawUrl, $this->requestAdapter); } - } diff --git a/client/Employees/EmployeesRequestBuilderGetQueryParameters.php b/client/Employees/EmployeesRequestBuilderGetQueryParameters.php old mode 100755 new mode 100644 index e3f2f66..29a38de --- a/client/Employees/EmployeesRequestBuilderGetQueryParameters.php +++ b/client/Employees/EmployeesRequestBuilderGetQueryParameters.php @@ -1,95 +1,98 @@ |null $siteIds Filtrer par un ou plusieurs codes site (ex: siteIds[]=LDCSER&siteIds[]=SLELA). - */ + * @var array|null Filtrer par un ou plusieurs codes site (ex: siteIds[]=LDCSER&siteIds[]=SLELA). + */ public ?array $siteIds = null; - + /** - * @var GetSortByQueryParameterType|null $sortBy Champ d'ordonnancement des employés. - */ + * @var GetSortByQueryParameterType|null Champ d'ordonnancement des employés. + */ public ?GetSortByQueryParameterType $sortBy = null; - + /** - * @var GetSortDirectionQueryParameterType|null $sortDirection Sens du tri. - */ + * @var GetSortDirectionQueryParameterType|null Sens du tri. + */ public ?GetSortDirectionQueryParameterType $sortDirection = null; - + /** * Instantiates a new EmployeesRequestBuilderGetQueryParameters and sets the default values. - * @param string|null $establishment Filtrer par code établissement (ex: 01, PA, LY). - * @param int|null $limit Nombre maximal d'enregistrements pour la pagination par offset. Les valeurs hors bornes sont silencieusement corrigées par l'API. - * @param int|null $offset Décalage d'index pour la pagination basée sur l'offset. Les valeurs négatives sont silencieusement corrigées à 0. - * @param int|null $page Numéro de page (1-based). Les valeurs hors bornes sont silencieusement corrigées par l'API. - * @param int|null $pageSize Nombre d'éléments par page (max 10000). Les valeurs hors bornes sont silencieusement corrigées par l'API. - * @param string|null $serviceId Filtrer par identifiant de service (ex: 097, 101). - * @param DateTime|null $since Horodatage au format RFC3339 (borne inférieure sur updatedAt). - * @param string|null $siteId Filtrer par code site (ex: LDCSER, SLELA). - * @param array|null $siteIds Filtrer par un ou plusieurs codes site (ex: siteIds[]=LDCSER&siteIds[]=SLELA). - * @param GetSortByQueryParameterType|null $sortBy Champ d'ordonnancement des employés. - * @param GetSortDirectionQueryParameterType|null $sortDirection Sens du tri. - */ - public function __construct(?string $establishment = null, ?int $limit = null, ?int $offset = null, ?int $page = null, ?int $pageSize = null, ?string $serviceId = null, ?DateTime $since = null, ?string $siteId = null, ?array $siteIds = null, ?GetSortByQueryParameterType $sortBy = null, ?GetSortDirectionQueryParameterType $sortDirection = null) { + * + * @param string|null $establishment Filtrer par code établissement (ex: 01, PA, LY). + * @param int|null $limit Nombre maximal d'enregistrements pour la pagination par offset. Les valeurs hors bornes sont silencieusement corrigées par l'API. + * @param int|null $offset Décalage d'index pour la pagination basée sur l'offset. Les valeurs négatives sont silencieusement corrigées à 0. + * @param int|null $page Numéro de page (1-based). Les valeurs hors bornes sont silencieusement corrigées par l'API. + * @param int|null $pageSize Nombre d'éléments par page (max 10000). Les valeurs hors bornes sont silencieusement corrigées par l'API. + * @param string|null $serviceId Filtrer par identifiant de service (ex: 097, 101). + * @param DateTime|null $since Horodatage au format RFC3339 (borne inférieure sur updatedAt). + * @param string|null $siteId Filtrer par code site (ex: LDCSER, SLELA). + * @param array|null $siteIds Filtrer par un ou plusieurs codes site (ex: siteIds[]=LDCSER&siteIds[]=SLELA). + * @param GetSortByQueryParameterType|null $sortBy Champ d'ordonnancement des employés. + * @param GetSortDirectionQueryParameterType|null $sortDirection Sens du tri. + */ + public function __construct(?string $establishment = null, ?int $limit = null, ?int $offset = null, ?int $page = null, ?int $pageSize = null, ?string $serviceId = null, ?DateTime $since = null, ?string $siteId = null, ?array $siteIds = null, ?GetSortByQueryParameterType $sortBy = null, ?GetSortDirectionQueryParameterType $sortDirection = null) + { $this->establishment = $establishment; - $this->limit = $limit; - $this->offset = $offset; - $this->page = $page; - $this->pageSize = $pageSize; - $this->serviceId = $serviceId; - $this->since = $since; - $this->siteId = $siteId; - $this->siteIds = $siteIds; - $this->sortBy = $sortBy; + $this->limit = $limit; + $this->offset = $offset; + $this->page = $page; + $this->pageSize = $pageSize; + $this->serviceId = $serviceId; + $this->since = $since; + $this->siteId = $siteId; + $this->siteIds = $siteIds; + $this->sortBy = $sortBy; $this->sortDirection = $sortDirection; } - } diff --git a/client/Employees/EmployeesRequestBuilderGetRequestConfiguration.php b/client/Employees/EmployeesRequestBuilderGetRequestConfiguration.php old mode 100755 new mode 100644 index 14a7446..0d5276d --- a/client/Employees/EmployeesRequestBuilderGetRequestConfiguration.php +++ b/client/Employees/EmployeesRequestBuilderGetRequestConfiguration.php @@ -1,5 +1,7 @@ |string>|null $headers Request headers - * @param array|null $options Request options - * @param EmployeesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters - */ - public function __construct(?array $headers = null, ?array $options = null, ?EmployeesRequestBuilderGetQueryParameters $queryParameters = null) { + * + * @param array|string>|null $headers Request headers + * @param array|null $options Request options + * @param EmployeesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?EmployeesRequestBuilderGetQueryParameters $queryParameters = null) + { parent::__construct($headers ?? [], $options ?? []); $this->queryParameters = $queryParameters; } /** * Instantiates a new EmployeesRequestBuilderGetQueryParameters. - * @param string|null $establishment Filtrer par code établissement (ex: 01, PA, LY). - * @param int|null $limit Nombre maximal d'enregistrements pour la pagination par offset. Les valeurs hors bornes sont silencieusement corrigées par l'API. - * @param int|null $offset Décalage d'index pour la pagination basée sur l'offset. Les valeurs négatives sont silencieusement corrigées à 0. - * @param int|null $page Numéro de page (1-based). Les valeurs hors bornes sont silencieusement corrigées par l'API. - * @param int|null $pageSize Nombre d'éléments par page (max 10000). Les valeurs hors bornes sont silencieusement corrigées par l'API. - * @param string|null $serviceId Filtrer par identifiant de service (ex: 097, 101). - * @param DateTime|null $since Horodatage au format RFC3339 (borne inférieure sur updatedAt). - * @param string|null $siteId Filtrer par code site (ex: LDCSER, SLELA). - * @param array|null $siteIds Filtrer par un ou plusieurs codes site (ex: siteIds[]=LDCSER&siteIds[]=SLELA). - * @param GetSortByQueryParameterType|null $sortBy Champ d'ordonnancement des employés. - * @param GetSortDirectionQueryParameterType|null $sortDirection Sens du tri. - * @return EmployeesRequestBuilderGetQueryParameters - */ - public static function createQueryParameters(?string $establishment = null, ?int $limit = null, ?int $offset = null, ?int $page = null, ?int $pageSize = null, ?string $serviceId = null, ?DateTime $since = null, ?string $siteId = null, ?array $siteIds = null, ?GetSortByQueryParameterType $sortBy = null, ?GetSortDirectionQueryParameterType $sortDirection = null): EmployeesRequestBuilderGetQueryParameters { + * + * @param string|null $establishment Filtrer par code établissement (ex: 01, PA, LY). + * @param int|null $limit Nombre maximal d'enregistrements pour la pagination par offset. Les valeurs hors bornes sont silencieusement corrigées par l'API. + * @param int|null $offset Décalage d'index pour la pagination basée sur l'offset. Les valeurs négatives sont silencieusement corrigées à 0. + * @param int|null $page Numéro de page (1-based). Les valeurs hors bornes sont silencieusement corrigées par l'API. + * @param int|null $pageSize Nombre d'éléments par page (max 10000). Les valeurs hors bornes sont silencieusement corrigées par l'API. + * @param string|null $serviceId Filtrer par identifiant de service (ex: 097, 101). + * @param DateTime|null $since Horodatage au format RFC3339 (borne inférieure sur updatedAt). + * @param string|null $siteId Filtrer par code site (ex: LDCSER, SLELA). + * @param array|null $siteIds Filtrer par un ou plusieurs codes site (ex: siteIds[]=LDCSER&siteIds[]=SLELA). + * @param GetSortByQueryParameterType|null $sortBy Champ d'ordonnancement des employés. + * @param GetSortDirectionQueryParameterType|null $sortDirection Sens du tri. + */ + public static function createQueryParameters(?string $establishment = null, ?int $limit = null, ?int $offset = null, ?int $page = null, ?int $pageSize = null, ?string $serviceId = null, ?DateTime $since = null, ?string $siteId = null, ?array $siteIds = null, ?GetSortByQueryParameterType $sortBy = null, ?GetSortDirectionQueryParameterType $sortDirection = null): EmployeesRequestBuilderGetQueryParameters + { return new EmployeesRequestBuilderGetQueryParameters($establishment, $limit, $offset, $page, $pageSize, $serviceId, $since, $siteId, $siteIds, $sortBy, $sortDirection); } - } diff --git a/client/Employees/GetSortByQueryParameterType.php b/client/Employees/GetSortByQueryParameterType.php old mode 100755 new mode 100644 index 2c4d81e..2311d36 --- a/client/Employees/GetSortByQueryParameterType.php +++ b/client/Employees/GetSortByQueryParameterType.php @@ -1,14 +1,22 @@ |string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. - * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. - */ - public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + * + * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) + { parent::__construct($requestAdapter, [], '{+baseurl}/employees/{employeeId}'); if (is_array($pathParametersOrRawUrl)) { $this->pathParameters = $pathParametersOrRawUrl; @@ -33,50 +37,56 @@ class WithEmployeeItemRequestBuilder extends BaseRequestBuilder /** * Retourne la fiche détaillée d'un employé spécifié par son matricule public unique. - * @param WithEmployeeItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * + * @param WithEmployeeItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise + * * @throws Exception - */ - public function get(?WithEmployeeItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { - $requestInfo = $this->toGetRequestInformation($requestConfiguration); + */ + public function get(?WithEmployeeItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise + { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); $errorMappings = [ - '400' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '401' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '403' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '404' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'], - '429' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '500' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '503' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '400' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '401' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '403' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '404' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'], + '429' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '500' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '503' => [ProblemDetails::class, 'createFromDiscriminatorValue'], ]; + return $this->requestAdapter->sendAsync($requestInfo, [EmployeeItemResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } /** * Retourne la fiche détaillée d'un employé spécifié par son matricule public unique. - * @param WithEmployeeItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return RequestInformation - */ - public function toGetRequestInformation(?WithEmployeeItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { - $requestInfo = new RequestInformation(); - $requestInfo->urlTemplate = $this->urlTemplate; + * + * @param WithEmployeeItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public function toGetRequestInformation(?WithEmployeeItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation + { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; - $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->httpMethod = HttpMethod::GET; if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->tryAddHeader('Accept', 'application/json'); + return $requestInfo; } /** * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param string $rawUrl The raw URL to use for the request builder. - * @return WithEmployeeItemRequestBuilder - */ - public function withUrl(string $rawUrl): WithEmployeeItemRequestBuilder { + * + * @param string $rawUrl The raw URL to use for the request builder. + */ + public function withUrl(string $rawUrl): WithEmployeeItemRequestBuilder + { return new WithEmployeeItemRequestBuilder($rawUrl, $this->requestAdapter); } - } diff --git a/client/Employees/Item/WithEmployeeItemRequestBuilderGetRequestConfiguration.php b/client/Employees/Item/WithEmployeeItemRequestBuilderGetRequestConfiguration.php old mode 100755 new mode 100644 index 129ab44..d1b3d0e --- a/client/Employees/Item/WithEmployeeItemRequestBuilderGetRequestConfiguration.php +++ b/client/Employees/Item/WithEmployeeItemRequestBuilderGetRequestConfiguration.php @@ -1,5 +1,7 @@ |string>|null $headers Request headers - * @param array|null $options Request options - */ - public function __construct(?array $headers = null, ?array $options = null) { + * + * @param array|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) + { parent::__construct($headers ?? [], $options ?? []); } - } diff --git a/client/Health/HealthRequestBuilder.php b/client/Health/HealthRequestBuilder.php old mode 100755 new mode 100644 index 8ba00a3..756f6b0 --- a/client/Health/HealthRequestBuilder.php +++ b/client/Health/HealthRequestBuilder.php @@ -1,5 +1,7 @@ |string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. - * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. - */ - public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + * + * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) + { parent::__construct($requestAdapter, [], '{+baseurl}/health'); if (is_array($pathParametersOrRawUrl)) { $this->pathParameters = $pathParametersOrRawUrl; @@ -31,43 +35,49 @@ class HealthRequestBuilder extends BaseRequestBuilder /** * Vérifie l'état de fonctionnement et la connectivité de l'ensemble des dépendances d'infrastructure (base de données par défaut, base de données Arcadia, cache et serveur SMTP). - * @param HealthRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * + * @param HealthRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise + * * @throws Exception - */ - public function get(?HealthRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { - $requestInfo = $this->toGetRequestInformation($requestConfiguration); + */ + public function get(?HealthRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise + { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); $errorMappings = [ - '503' => [HealthCheckResponse::class, 'createFromDiscriminatorValue'], + '503' => [HealthCheckResponse::class, 'createFromDiscriminatorValue'], ]; + return $this->requestAdapter->sendAsync($requestInfo, [HealthCheckResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } /** * Vérifie l'état de fonctionnement et la connectivité de l'ensemble des dépendances d'infrastructure (base de données par défaut, base de données Arcadia, cache et serveur SMTP). - * @param HealthRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return RequestInformation - */ - public function toGetRequestInformation(?HealthRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { - $requestInfo = new RequestInformation(); - $requestInfo->urlTemplate = $this->urlTemplate; + * + * @param HealthRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public function toGetRequestInformation(?HealthRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation + { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; - $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->httpMethod = HttpMethod::GET; if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->tryAddHeader('Accept', 'application/json'); + return $requestInfo; } /** * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param string $rawUrl The raw URL to use for the request builder. - * @return HealthRequestBuilder - */ - public function withUrl(string $rawUrl): HealthRequestBuilder { + * + * @param string $rawUrl The raw URL to use for the request builder. + */ + public function withUrl(string $rawUrl): HealthRequestBuilder + { return new HealthRequestBuilder($rawUrl, $this->requestAdapter); } - } diff --git a/client/Health/HealthRequestBuilderGetRequestConfiguration.php b/client/Health/HealthRequestBuilderGetRequestConfiguration.php old mode 100755 new mode 100644 index 28066ae..dd97917 --- a/client/Health/HealthRequestBuilderGetRequestConfiguration.php +++ b/client/Health/HealthRequestBuilderGetRequestConfiguration.php @@ -1,5 +1,7 @@ |string>|null $headers Request headers - * @param array|null $options Request options - */ - public function __construct(?array $headers = null, ?array $options = null) { + * + * @param array|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) + { parent::__construct($headers ?? [], $options ?? []); } - } diff --git a/client/IncoSheets/GetSortByQueryParameterType.php b/client/IncoSheets/GetSortByQueryParameterType.php old mode 100755 new mode 100644 index 8bb52cd..921d9ae --- a/client/IncoSheets/GetSortByQueryParameterType.php +++ b/client/IncoSheets/GetSortByQueryParameterType.php @@ -1,11 +1,16 @@ pathParameters, $this->requestAdapter); } - + /** * Gets an item from the Uwil/ArcadiaKiotaOpenApiClient.incoSheets.item collection - * @param string $incoId Identifiant numérique unique de la fiche INCO. - * @return WithIncoItemRequestBuilder - */ - public function byIncoId(string $incoId): WithIncoItemRequestBuilder { - $urlTplParams = $this->pathParameters; + * + * @param string $incoId Identifiant numérique unique de la fiche INCO. + */ + public function byIncoId(string $incoId): WithIncoItemRequestBuilder + { + $urlTplParams = $this->pathParameters; $urlTplParams['incoId'] = $incoId; + return new WithIncoItemRequestBuilder($urlTplParams, $this->requestAdapter); } /** * Instantiates a new IncoSheetsRequestBuilder and sets the default values. - * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. - * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. - */ - public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + * + * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) + { parent::__construct($requestAdapter, [], '{+baseurl}/inco-sheets{?brands*,limit*,offset*,page*,pageSize*,short*,since*,sortBy*,sortDirection*}'); if (is_array($pathParametersOrRawUrl)) { $this->pathParameters = $pathParametersOrRawUrl; @@ -53,34 +60,39 @@ class IncoSheetsRequestBuilder extends BaseRequestBuilder /** * Retourne la liste paginée des fiches produits INCO.Prend en charge le filtrage par marques (`brands`), la date de modification (`since`), la projection au format court (`short=true`), ainsi que le tri et la pagination. - * @param IncoSheetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * + * @param IncoSheetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise + * * @throws Exception - */ - public function get(?IncoSheetsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { - $requestInfo = $this->toGetRequestInformation($requestConfiguration); + */ + public function get(?IncoSheetsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise + { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); $errorMappings = [ - '400' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '401' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '403' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'], - '429' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '500' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '503' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '400' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '401' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '403' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'], + '429' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '500' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '503' => [ProblemDetails::class, 'createFromDiscriminatorValue'], ]; + return $this->requestAdapter->sendAsync($requestInfo, [IncoListResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } /** * Retourne la liste paginée des fiches produits INCO.Prend en charge le filtrage par marques (`brands`), la date de modification (`since`), la projection au format court (`short=true`), ainsi que le tri et la pagination. - * @param IncoSheetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return RequestInformation - */ - public function toGetRequestInformation(?IncoSheetsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { - $requestInfo = new RequestInformation(); - $requestInfo->urlTemplate = $this->urlTemplate; + * + * @param IncoSheetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public function toGetRequestInformation(?IncoSheetsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation + { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; - $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->httpMethod = HttpMethod::GET; if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); if ($requestConfiguration->queryParameters !== null) { @@ -88,17 +100,18 @@ class IncoSheetsRequestBuilder extends BaseRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->tryAddHeader('Accept', 'application/json'); + return $requestInfo; } /** * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param string $rawUrl The raw URL to use for the request builder. - * @return IncoSheetsRequestBuilder - */ - public function withUrl(string $rawUrl): IncoSheetsRequestBuilder { + * + * @param string $rawUrl The raw URL to use for the request builder. + */ + public function withUrl(string $rawUrl): IncoSheetsRequestBuilder + { return new IncoSheetsRequestBuilder($rawUrl, $this->requestAdapter); } - } diff --git a/client/IncoSheets/IncoSheetsRequestBuilderGetQueryParameters.php b/client/IncoSheets/IncoSheetsRequestBuilderGetQueryParameters.php old mode 100755 new mode 100644 index 2889147..6de439b --- a/client/IncoSheets/IncoSheetsRequestBuilderGetQueryParameters.php +++ b/client/IncoSheets/IncoSheetsRequestBuilderGetQueryParameters.php @@ -1,81 +1,84 @@ |null $brands Filtrer par un ou plusieurs codes marque. - */ + * @var array|null Filtrer par un ou plusieurs codes marque. + */ public ?array $brands = null; - + /** - * @var int|null $limit Nombre maximal d'enregistrements pour la pagination par offset. Les valeurs hors bornes sont silencieusement corrigées par l'API. - */ + * @var int|null Nombre maximal d'enregistrements pour la pagination par offset. Les valeurs hors bornes sont silencieusement corrigées par l'API. + */ public ?int $limit = null; - + /** - * @var int|null $offset Décalage d'index pour la pagination basée sur l'offset. Les valeurs négatives sont silencieusement corrigées à 0. - */ + * @var int|null Décalage d'index pour la pagination basée sur l'offset. Les valeurs négatives sont silencieusement corrigées à 0. + */ public ?int $offset = null; - + /** - * @var int|null $page Numéro de page (1-based). Les valeurs hors bornes sont silencieusement corrigées par l'API. - */ + * @var int|null Numéro de page (1-based). Les valeurs hors bornes sont silencieusement corrigées par l'API. + */ public ?int $page = null; - + /** - * @var int|null $pageSize Nombre d'éléments par page (max 10000). Les valeurs hors bornes sont silencieusement corrigées par l'API. - */ + * @var int|null Nombre d'éléments par page (max 10000). Les valeurs hors bornes sont silencieusement corrigées par l'API. + */ public ?int $pageSize = null; - + /** - * @var bool|null $short Retourne la projection courte si true. - */ + * @var bool|null Retourne la projection courte si true. + */ public ?bool $short = null; - + /** - * @var DateTime|null $since Horodatage au format RFC3339 (borne inférieure sur updatedAt). - */ + * @var DateTime|null Horodatage au format RFC3339 (borne inférieure sur updatedAt). + */ public ?DateTime $since = null; - + /** - * @var GetSortByQueryParameterType|null $sortBy Champ d'ordonnancement des fiches INCO. - */ + * @var GetSortByQueryParameterType|null Champ d'ordonnancement des fiches INCO. + */ public ?GetSortByQueryParameterType $sortBy = null; - + /** - * @var GetSortDirectionQueryParameterType|null $sortDirection Sens du tri. - */ + * @var GetSortDirectionQueryParameterType|null Sens du tri. + */ public ?GetSortDirectionQueryParameterType $sortDirection = null; - + /** * Instantiates a new IncoSheetsRequestBuilderGetQueryParameters and sets the default values. - * @param array|null $brands Filtrer par un ou plusieurs codes marque. - * @param int|null $limit Nombre maximal d'enregistrements pour la pagination par offset. Les valeurs hors bornes sont silencieusement corrigées par l'API. - * @param int|null $offset Décalage d'index pour la pagination basée sur l'offset. Les valeurs négatives sont silencieusement corrigées à 0. - * @param int|null $page Numéro de page (1-based). Les valeurs hors bornes sont silencieusement corrigées par l'API. - * @param int|null $pageSize Nombre d'éléments par page (max 10000). Les valeurs hors bornes sont silencieusement corrigées par l'API. - * @param bool|null $short Retourne la projection courte si true. - * @param DateTime|null $since Horodatage au format RFC3339 (borne inférieure sur updatedAt). - * @param GetSortByQueryParameterType|null $sortBy Champ d'ordonnancement des fiches INCO. - * @param GetSortDirectionQueryParameterType|null $sortDirection Sens du tri. - */ - public function __construct(?array $brands = null, ?int $limit = null, ?int $offset = null, ?int $page = null, ?int $pageSize = null, ?bool $short = null, ?DateTime $since = null, ?GetSortByQueryParameterType $sortBy = null, ?GetSortDirectionQueryParameterType $sortDirection = null) { - $this->brands = $brands; - $this->limit = $limit; - $this->offset = $offset; - $this->page = $page; - $this->pageSize = $pageSize; - $this->short = $short; - $this->since = $since; - $this->sortBy = $sortBy; + * + * @param array|null $brands Filtrer par un ou plusieurs codes marque. + * @param int|null $limit Nombre maximal d'enregistrements pour la pagination par offset. Les valeurs hors bornes sont silencieusement corrigées par l'API. + * @param int|null $offset Décalage d'index pour la pagination basée sur l'offset. Les valeurs négatives sont silencieusement corrigées à 0. + * @param int|null $page Numéro de page (1-based). Les valeurs hors bornes sont silencieusement corrigées par l'API. + * @param int|null $pageSize Nombre d'éléments par page (max 10000). Les valeurs hors bornes sont silencieusement corrigées par l'API. + * @param bool|null $short Retourne la projection courte si true. + * @param DateTime|null $since Horodatage au format RFC3339 (borne inférieure sur updatedAt). + * @param GetSortByQueryParameterType|null $sortBy Champ d'ordonnancement des fiches INCO. + * @param GetSortDirectionQueryParameterType|null $sortDirection Sens du tri. + */ + public function __construct(?array $brands = null, ?int $limit = null, ?int $offset = null, ?int $page = null, ?int $pageSize = null, ?bool $short = null, ?DateTime $since = null, ?GetSortByQueryParameterType $sortBy = null, ?GetSortDirectionQueryParameterType $sortDirection = null) + { + $this->brands = $brands; + $this->limit = $limit; + $this->offset = $offset; + $this->page = $page; + $this->pageSize = $pageSize; + $this->short = $short; + $this->since = $since; + $this->sortBy = $sortBy; $this->sortDirection = $sortDirection; } - } diff --git a/client/IncoSheets/IncoSheetsRequestBuilderGetRequestConfiguration.php b/client/IncoSheets/IncoSheetsRequestBuilderGetRequestConfiguration.php old mode 100755 new mode 100644 index c147921..5aa2f72 --- a/client/IncoSheets/IncoSheetsRequestBuilderGetRequestConfiguration.php +++ b/client/IncoSheets/IncoSheetsRequestBuilderGetRequestConfiguration.php @@ -1,5 +1,7 @@ |string>|null $headers Request headers - * @param array|null $options Request options - * @param IncoSheetsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters - */ - public function __construct(?array $headers = null, ?array $options = null, ?IncoSheetsRequestBuilderGetQueryParameters $queryParameters = null) { + * + * @param array|string>|null $headers Request headers + * @param array|null $options Request options + * @param IncoSheetsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?IncoSheetsRequestBuilderGetQueryParameters $queryParameters = null) + { parent::__construct($headers ?? [], $options ?? []); $this->queryParameters = $queryParameters; } /** * Instantiates a new IncoSheetsRequestBuilderGetQueryParameters. - * @param array|null $brands Filtrer par un ou plusieurs codes marque. - * @param int|null $limit Nombre maximal d'enregistrements pour la pagination par offset. Les valeurs hors bornes sont silencieusement corrigées par l'API. - * @param int|null $offset Décalage d'index pour la pagination basée sur l'offset. Les valeurs négatives sont silencieusement corrigées à 0. - * @param int|null $page Numéro de page (1-based). Les valeurs hors bornes sont silencieusement corrigées par l'API. - * @param int|null $pageSize Nombre d'éléments par page (max 10000). Les valeurs hors bornes sont silencieusement corrigées par l'API. - * @param bool|null $short Retourne la projection courte si true. - * @param DateTime|null $since Horodatage au format RFC3339 (borne inférieure sur updatedAt). - * @param GetSortByQueryParameterType|null $sortBy Champ d'ordonnancement des fiches INCO. - * @param GetSortDirectionQueryParameterType|null $sortDirection Sens du tri. - * @return IncoSheetsRequestBuilderGetQueryParameters - */ - public static function createQueryParameters(?array $brands = null, ?int $limit = null, ?int $offset = null, ?int $page = null, ?int $pageSize = null, ?bool $short = null, ?DateTime $since = null, ?GetSortByQueryParameterType $sortBy = null, ?GetSortDirectionQueryParameterType $sortDirection = null): IncoSheetsRequestBuilderGetQueryParameters { + * + * @param array|null $brands Filtrer par un ou plusieurs codes marque. + * @param int|null $limit Nombre maximal d'enregistrements pour la pagination par offset. Les valeurs hors bornes sont silencieusement corrigées par l'API. + * @param int|null $offset Décalage d'index pour la pagination basée sur l'offset. Les valeurs négatives sont silencieusement corrigées à 0. + * @param int|null $page Numéro de page (1-based). Les valeurs hors bornes sont silencieusement corrigées par l'API. + * @param int|null $pageSize Nombre d'éléments par page (max 10000). Les valeurs hors bornes sont silencieusement corrigées par l'API. + * @param bool|null $short Retourne la projection courte si true. + * @param DateTime|null $since Horodatage au format RFC3339 (borne inférieure sur updatedAt). + * @param GetSortByQueryParameterType|null $sortBy Champ d'ordonnancement des fiches INCO. + * @param GetSortDirectionQueryParameterType|null $sortDirection Sens du tri. + */ + public static function createQueryParameters(?array $brands = null, ?int $limit = null, ?int $offset = null, ?int $page = null, ?int $pageSize = null, ?bool $short = null, ?DateTime $since = null, ?GetSortByQueryParameterType $sortBy = null, ?GetSortDirectionQueryParameterType $sortDirection = null): IncoSheetsRequestBuilderGetQueryParameters + { return new IncoSheetsRequestBuilderGetQueryParameters($brands, $limit, $offset, $page, $pageSize, $short, $since, $sortBy, $sortDirection); } - } diff --git a/client/IncoSheets/Item/Composition/CompositionRequestBuilder.php b/client/IncoSheets/Item/Composition/CompositionRequestBuilder.php old mode 100755 new mode 100644 index 72bf121..c58d661 --- a/client/IncoSheets/Item/Composition/CompositionRequestBuilder.php +++ b/client/IncoSheets/Item/Composition/CompositionRequestBuilder.php @@ -1,5 +1,7 @@ |string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. - * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. - */ - public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + * + * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) + { parent::__construct($requestAdapter, [], '{+baseurl}/inco-sheets/{incoId}/composition'); if (is_array($pathParametersOrRawUrl)) { $this->pathParameters = $pathParametersOrRawUrl; @@ -33,50 +37,56 @@ class CompositionRequestBuilder extends BaseRequestBuilder /** * Retourne le détail de la composition nutritionnelle et des ingrédients liés à une fiche INCO. - * @param CompositionRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * + * @param CompositionRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise + * * @throws Exception - */ - public function get(?CompositionRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { - $requestInfo = $this->toGetRequestInformation($requestConfiguration); + */ + public function get(?CompositionRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise + { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); $errorMappings = [ - '400' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '401' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '403' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '404' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'], - '429' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '500' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '503' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '400' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '401' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '403' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '404' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'], + '429' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '500' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '503' => [ProblemDetails::class, 'createFromDiscriminatorValue'], ]; + return $this->requestAdapter->sendAsync($requestInfo, [IncoCompoItemResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } /** * Retourne le détail de la composition nutritionnelle et des ingrédients liés à une fiche INCO. - * @param CompositionRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return RequestInformation - */ - public function toGetRequestInformation(?CompositionRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { - $requestInfo = new RequestInformation(); - $requestInfo->urlTemplate = $this->urlTemplate; + * + * @param CompositionRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public function toGetRequestInformation(?CompositionRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation + { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; - $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->httpMethod = HttpMethod::GET; if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->tryAddHeader('Accept', 'application/json'); + return $requestInfo; } /** * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param string $rawUrl The raw URL to use for the request builder. - * @return CompositionRequestBuilder - */ - public function withUrl(string $rawUrl): CompositionRequestBuilder { + * + * @param string $rawUrl The raw URL to use for the request builder. + */ + public function withUrl(string $rawUrl): CompositionRequestBuilder + { return new CompositionRequestBuilder($rawUrl, $this->requestAdapter); } - } diff --git a/client/IncoSheets/Item/Composition/CompositionRequestBuilderGetRequestConfiguration.php b/client/IncoSheets/Item/Composition/CompositionRequestBuilderGetRequestConfiguration.php old mode 100755 new mode 100644 index 9780c10..5b9078d --- a/client/IncoSheets/Item/Composition/CompositionRequestBuilderGetRequestConfiguration.php +++ b/client/IncoSheets/Item/Composition/CompositionRequestBuilderGetRequestConfiguration.php @@ -1,5 +1,7 @@ |string>|null $headers Request headers - * @param array|null $options Request options - */ - public function __construct(?array $headers = null, ?array $options = null) { + * + * @param array|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) + { parent::__construct($headers ?? [], $options ?? []); } - } diff --git a/client/IncoSheets/Item/WithIncoItemRequestBuilder.php b/client/IncoSheets/Item/WithIncoItemRequestBuilder.php old mode 100755 new mode 100644 index 46c0d8e..2c09783 --- a/client/IncoSheets/Item/WithIncoItemRequestBuilder.php +++ b/client/IncoSheets/Item/WithIncoItemRequestBuilder.php @@ -1,5 +1,7 @@ pathParameters, $this->requestAdapter); } - + /** * Instantiates a new WithIncoItemRequestBuilder and sets the default values. - * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. - * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. - */ - public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + * + * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) + { parent::__construct($requestAdapter, [], '{+baseurl}/inco-sheets/{incoId}'); if (is_array($pathParametersOrRawUrl)) { $this->pathParameters = $pathParametersOrRawUrl; @@ -41,50 +46,56 @@ class WithIncoItemRequestBuilder extends BaseRequestBuilder /** * Retourne la fiche produit INCO détaillée correspondant à l'identifiant spécifié. - * @param WithIncoItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * + * @param WithIncoItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise + * * @throws Exception - */ - public function get(?WithIncoItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { - $requestInfo = $this->toGetRequestInformation($requestConfiguration); + */ + public function get(?WithIncoItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise + { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); $errorMappings = [ - '400' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '401' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '403' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '404' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'], - '429' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '500' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '503' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '400' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '401' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '403' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '404' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'], + '429' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '500' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '503' => [ProblemDetails::class, 'createFromDiscriminatorValue'], ]; + return $this->requestAdapter->sendAsync($requestInfo, [IncoItemResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } /** * Retourne la fiche produit INCO détaillée correspondant à l'identifiant spécifié. - * @param WithIncoItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return RequestInformation - */ - public function toGetRequestInformation(?WithIncoItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { - $requestInfo = new RequestInformation(); - $requestInfo->urlTemplate = $this->urlTemplate; + * + * @param WithIncoItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public function toGetRequestInformation(?WithIncoItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation + { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; - $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->httpMethod = HttpMethod::GET; if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->tryAddHeader('Accept', 'application/json'); + return $requestInfo; } /** * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param string $rawUrl The raw URL to use for the request builder. - * @return WithIncoItemRequestBuilder - */ - public function withUrl(string $rawUrl): WithIncoItemRequestBuilder { + * + * @param string $rawUrl The raw URL to use for the request builder. + */ + public function withUrl(string $rawUrl): WithIncoItemRequestBuilder + { return new WithIncoItemRequestBuilder($rawUrl, $this->requestAdapter); } - } diff --git a/client/IncoSheets/Item/WithIncoItemRequestBuilderGetRequestConfiguration.php b/client/IncoSheets/Item/WithIncoItemRequestBuilderGetRequestConfiguration.php old mode 100755 new mode 100644 index 950eeb1..30e06c7 --- a/client/IncoSheets/Item/WithIncoItemRequestBuilderGetRequestConfiguration.php +++ b/client/IncoSheets/Item/WithIncoItemRequestBuilderGetRequestConfiguration.php @@ -1,5 +1,7 @@ |string>|null $headers Request headers - * @param array|null $options Request options - */ - public function __construct(?array $headers = null, ?array $options = null) { + * + * @param array|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) + { parent::__construct($headers ?? [], $options ?? []); } - } diff --git a/client/IncoSheets/Search/SearchRequestBuilder.php b/client/IncoSheets/Search/SearchRequestBuilder.php old mode 100755 new mode 100644 index 85fb06a..0b1ab46 --- a/client/IncoSheets/Search/SearchRequestBuilder.php +++ b/client/IncoSheets/Search/SearchRequestBuilder.php @@ -1,5 +1,7 @@ |string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. - * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. - */ - public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) { + * + * @param array|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL. + * @param RequestAdapter $requestAdapter The request adapter to use to execute the requests. + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) + { parent::__construct($requestAdapter, [], '{+baseurl}/inco-sheets/search?incoIdLike={incoIdLike}{&brands*,short*}'); if (is_array($pathParametersOrRawUrl)) { $this->pathParameters = $pathParametersOrRawUrl; @@ -33,34 +37,39 @@ class SearchRequestBuilder extends BaseRequestBuilder /** * Recherche des fiches INCO dont l'ID correspond à un motif (`incoIdLike`).Prend également en charge la projection au format court (`short=true`). - * @param SearchRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * + * @param SearchRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise + * * @throws Exception - */ - public function get(?SearchRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { - $requestInfo = $this->toGetRequestInformation($requestConfiguration); + */ + public function get(?SearchRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise + { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); $errorMappings = [ - '400' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '401' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '403' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'], - '429' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '500' => [ProblemDetails::class, 'createFromDiscriminatorValue'], - '503' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '400' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '401' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '403' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'], + '429' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '500' => [ProblemDetails::class, 'createFromDiscriminatorValue'], + '503' => [ProblemDetails::class, 'createFromDiscriminatorValue'], ]; + return $this->requestAdapter->sendAsync($requestInfo, [IncoListResponse::class, 'createFromDiscriminatorValue'], $errorMappings); } /** * Recherche des fiches INCO dont l'ID correspond à un motif (`incoIdLike`).Prend également en charge la projection au format court (`short=true`). - * @param SearchRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @return RequestInformation - */ - public function toGetRequestInformation(?SearchRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { - $requestInfo = new RequestInformation(); - $requestInfo->urlTemplate = $this->urlTemplate; + * + * @param SearchRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public function toGetRequestInformation(?SearchRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation + { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; $requestInfo->pathParameters = $this->pathParameters; - $requestInfo->httpMethod = HttpMethod::GET; + $requestInfo->httpMethod = HttpMethod::GET; if ($requestConfiguration !== null) { $requestInfo->addHeaders($requestConfiguration->headers); if ($requestConfiguration->queryParameters !== null) { @@ -68,17 +77,18 @@ class SearchRequestBuilder extends BaseRequestBuilder } $requestInfo->addRequestOptions(...$requestConfiguration->options); } - $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->tryAddHeader('Accept', 'application/json'); + return $requestInfo; } /** * Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - * @param string $rawUrl The raw URL to use for the request builder. - * @return SearchRequestBuilder - */ - public function withUrl(string $rawUrl): SearchRequestBuilder { + * + * @param string $rawUrl The raw URL to use for the request builder. + */ + public function withUrl(string $rawUrl): SearchRequestBuilder + { return new SearchRequestBuilder($rawUrl, $this->requestAdapter); } - } diff --git a/client/IncoSheets/Search/SearchRequestBuilderGetQueryParameters.php b/client/IncoSheets/Search/SearchRequestBuilderGetQueryParameters.php old mode 100755 new mode 100644 index ff9013b..8b94ba0 --- a/client/IncoSheets/Search/SearchRequestBuilderGetQueryParameters.php +++ b/client/IncoSheets/Search/SearchRequestBuilderGetQueryParameters.php @@ -1,37 +1,40 @@ |null $brands Filtrer par un ou plusieurs codes marque. - */ + * @var array|null Filtrer par un ou plusieurs codes marque. + */ public ?array $brands = null; - + /** - * @var string|null $incoIdLike Motif de recherche d'ID (SQL LIKE). - */ + * @var string|null Motif de recherche d'ID (SQL LIKE). + */ public ?string $incoIdLike = null; - + /** - * @var bool|null $short Retourne la projection courte si true. - */ + * @var bool|null Retourne la projection courte si true. + */ public ?bool $short = null; - + /** * Instantiates a new SearchRequestBuilderGetQueryParameters and sets the default values. - * @param array|null $brands Filtrer par un ou plusieurs codes marque. - * @param string|null $incoIdLike Motif de recherche d'ID (SQL LIKE). - * @param bool|null $short Retourne la projection courte si true. - */ - public function __construct(?array $brands = null, ?string $incoIdLike = null, ?bool $short = null) { - $this->brands = $brands; + * + * @param array|null $brands Filtrer par un ou plusieurs codes marque. + * @param string|null $incoIdLike Motif de recherche d'ID (SQL LIKE). + * @param bool|null $short Retourne la projection courte si true. + */ + public function __construct(?array $brands = null, ?string $incoIdLike = null, ?bool $short = null) + { + $this->brands = $brands; $this->incoIdLike = $incoIdLike; - $this->short = $short; + $this->short = $short; } - } diff --git a/client/IncoSheets/Search/SearchRequestBuilderGetRequestConfiguration.php b/client/IncoSheets/Search/SearchRequestBuilderGetRequestConfiguration.php old mode 100755 new mode 100644 index 32ea10e..d9dab38 --- a/client/IncoSheets/Search/SearchRequestBuilderGetRequestConfiguration.php +++ b/client/IncoSheets/Search/SearchRequestBuilderGetRequestConfiguration.php @@ -1,5 +1,7 @@ |string>|null $headers Request headers - * @param array|null $options Request options - * @param SearchRequestBuilderGetQueryParameters|null $queryParameters Request query parameters - */ - public function __construct(?array $headers = null, ?array $options = null, ?SearchRequestBuilderGetQueryParameters $queryParameters = null) { + * + * @param array|string>|null $headers Request headers + * @param array|null $options Request options + * @param SearchRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?SearchRequestBuilderGetQueryParameters $queryParameters = null) + { parent::__construct($headers ?? [], $options ?? []); $this->queryParameters = $queryParameters; } /** * Instantiates a new SearchRequestBuilderGetQueryParameters. - * @param array|null $brands Filtrer par un ou plusieurs codes marque. - * @param string|null $incoIdLike Motif de recherche d'ID (SQL LIKE). - * @param bool|null $short Retourne la projection courte si true. - * @return SearchRequestBuilderGetQueryParameters - */ - public static function createQueryParameters(?array $brands = null, ?string $incoIdLike = null, ?bool $short = null): SearchRequestBuilderGetQueryParameters { + * + * @param array|null $brands Filtrer par un ou plusieurs codes marque. + * @param string|null $incoIdLike Motif de recherche d'ID (SQL LIKE). + * @param bool|null $short Retourne la projection courte si true. + */ + public static function createQueryParameters(?array $brands = null, ?string $incoIdLike = null, ?bool $short = null): SearchRequestBuilderGetQueryParameters + { return new SearchRequestBuilderGetQueryParameters($brands, $incoIdLike, $short); } - } diff --git a/client/Models/Brand.php b/client/Models/Brand.php old mode 100755 new mode 100644 index 7d95dd9..601f709 --- a/client/Models/Brand.php +++ b/client/Models/Brand.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 string|null $arcadiaId Identifiant numérique amont Arcadia. - */ + * @var string|null Identifiant numérique amont Arcadia. + */ private ?string $arcadiaId = null; - + /** - * @var string|null $code Code public unique trigramme + 2 chiffres. - */ + * @var string|null Code public unique trigramme + 2 chiffres. + */ private ?string $code = null; - + /** - * @var DateTime|null $createdAt Date et heure de création (ISO 8601). - */ + * @var DateTime|null Date et heure de création (ISO 8601). + */ private ?DateTime $createdAt = null; - + /** - * @var string|null $name Nom / libellé de la marque. - */ + * @var string|null Nom / libellé de la marque. + */ private ?string $name = null; - + /** * Instantiates a new Brand and sets the default values. - */ - public function __construct() { + */ + 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 { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * Gets the arcadiaId property value. Identifiant numérique amont Arcadia. - * @return string|null - */ - public function getArcadiaId(): ?string { + */ + 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 { + */ + 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 { + */ + public function getCreatedAt(): ?DateTime + { return $this->createdAt; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): 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()), + + 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 { + */ + 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 { + * + * @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()); @@ -122,42 +133,51 @@ class Brand implements AdditionalDataHolder, Parsable /** * 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 { + * + * @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 { + * + * @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 { + * + * @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 { + * + * @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 { + * + * @param string|null $value Value to set for the name property. + */ + public function setName(?string $value): void + { $this->name = $value; } - } diff --git a/client/Models/BrandItemResponse.php b/client/Models/BrandItemResponse.php old mode 100755 new mode 100644 index 2c1b721..6720d19 --- a/client/Models/BrandItemResponse.php +++ b/client/Models/BrandItemResponse.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 Brand|null $brand Représentation canonique d'une marque dans Arcadia API. - */ + * @var Brand|null Représentation canonique d'une marque dans Arcadia API. + */ private ?Brand $brand = null; - + /** * Instantiates a new BrandItemResponse and sets the default values. - */ - public function __construct() { + */ + 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 BrandItemResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): BrandItemResponse { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): BrandItemResponse + { return new BrandItemResponse(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * Gets the brand property value. Représentation canonique d'une marque dans Arcadia API. - * @return Brand|null - */ - public function getBrand(): ?Brand { + */ + public function getBrand(): ?Brand + { return $this->brand; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'brand' => fn(ParseNode $n) => $o->setBrand($n->getObjectValue([Brand::class, 'createFromDiscriminatorValue'])), + + return [ + 'brand' => fn (ParseNode $n) => $o->setBrand($n->getObjectValue([Brand::class, 'createFromDiscriminatorValue'])), ]; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeObjectValue('brand', $this->getBrand()); $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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the brand property value. Représentation canonique d'une marque dans Arcadia API. - * @param Brand|null $value Value to set for the brand property. - */ - public function setBrand(?Brand $value): void { + * + * @param Brand|null $value Value to set for the brand property. + */ + public function setBrand(?Brand $value): void + { $this->brand = $value; } - } diff --git a/client/Models/BrandListResponse.php b/client/Models/BrandListResponse.php old mode 100755 new mode 100644 index 37d9d96..e1c84df --- a/client/Models/BrandListResponse.php +++ b/client/Models/BrandListResponse.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 array|null $brands Collection des marques de la page. - */ + * @var array|null Collection des marques de la page. + */ private ?array $brands = null; - + /** - * @var PaginationMeta|null $pagination Métadonnées de pagination. - */ + * @var PaginationMeta|null Métadonnées de pagination. + */ private ?PaginationMeta $pagination = null; - + /** * Instantiates a new BrandListResponse and sets the default values. - */ - public function __construct() { + */ + 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 BrandListResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): BrandListResponse { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): BrandListResponse + { return new BrandListResponse(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * Gets the brands property value. Collection des marques de la page. + * * @return array|null - */ - public function getBrands(): ?array { + */ + public function getBrands(): ?array + { return $this->brands; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'brands' => fn(ParseNode $n) => $o->setBrands($n->getCollectionOfObjectValues([Brand::class, 'createFromDiscriminatorValue'])), - 'pagination' => fn(ParseNode $n) => $o->setPagination($n->getObjectValue([PaginationMeta::class, 'createFromDiscriminatorValue'])), + + return [ + 'brands' => fn (ParseNode $n) => $o->setBrands($n->getCollectionOfObjectValues([Brand::class, 'createFromDiscriminatorValue'])), + 'pagination' => fn (ParseNode $n) => $o->setPagination($n->getObjectValue([PaginationMeta::class, 'createFromDiscriminatorValue'])), ]; } /** * Gets the pagination property value. Métadonnées de pagination. - * @return PaginationMeta|null - */ - public function getPagination(): ?PaginationMeta { + */ + public function getPagination(): ?PaginationMeta + { return $this->pagination; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeCollectionOfObjectValues('brands', $this->getBrands()); $writer->writeObjectValue('pagination', $this->getPagination()); $writer->writeAdditionalData($this->getAdditionalData()); @@ -91,26 +104,31 @@ class BrandListResponse implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the brands property value. Collection des marques de la page. - * @param array|null $value Value to set for the brands property. - */ - public function setBrands(?array $value): void { + * + * @param array|null $value Value to set for the brands property. + */ + public function setBrands(?array $value): void + { $this->brands = $value; } /** * Sets the pagination property value. Métadonnées de pagination. - * @param PaginationMeta|null $value Value to set for the pagination property. - */ - public function setPagination(?PaginationMeta $value): void { + * + * @param PaginationMeta|null $value Value to set for the pagination property. + */ + public function setPagination(?PaginationMeta $value): void + { $this->pagination = $value; } - } diff --git a/client/Models/Employee.php b/client/Models/Employee.php old mode 100755 new mode 100644 index 756a3d7..f89c1a5 --- a/client/Models/Employee.php +++ b/client/Models/Employee.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 $createdAt Date d'enregistrement dans le système. - */ + * @var DateTime|null Date d'enregistrement dans le système. + */ private ?DateTime $createdAt = null; - + /** - * @var Date|null $endDate Date de fin de contrat effective (optionnelle). - */ + * @var Date|null Date de fin de contrat effective (optionnelle). + */ private ?Date $endDate = null; - + /** - * @var string|null $establishment Code de l'établissement d'affectation. - */ + * @var string|null Code de l'établissement d'affectation. + */ private ?string $establishment = null; - + /** - * @var string|null $firstName Prénom de l'employé. - */ + * @var string|null Prénom de l'employé. + */ private ?string $firstName = null; - + /** - * @var string|null $lastName Nom de famille de l'employé. - */ + * @var string|null Nom de famille de l'employé. + */ private ?string $lastName = null; - + /** - * @var string|null $matricule Matricule public unique de l'employé (SIRH). - */ + * @var string|null Matricule public unique de l'employé (SIRH). + */ private ?string $matricule = null; - + /** - * @var Date|null $plannedEndDate Date de fin de contrat prévue (optionnelle). - */ + * @var Date|null Date de fin de contrat prévue (optionnelle). + */ private ?Date $plannedEndDate = null; - + /** - * @var string|null $service Identifiant du service interne. - */ + * @var string|null Identifiant du service interne. + */ private ?string $service = null; - + /** - * @var string|null $site Code du site géographique. - */ + * @var string|null Code du site géographique. + */ private ?string $site = null; - + /** - * @var Date|null $startDate Date de prise de poste (YYYY-MM-DD). - */ + * @var Date|null Date de prise de poste (YYYY-MM-DD). + */ private ?Date $startDate = null; - + /** - * @var DateTime|null $updatedAt Date de dernière mise à jour. - */ + * @var DateTime|null Date de dernière mise à jour. + */ private ?DateTime $updatedAt = null; - + /** * Instantiates a new Employee and sets the default values. - */ - public function __construct() { + */ + 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 Employee - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): Employee { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): Employee + { return new Employee(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * Gets the createdAt property value. Date d'enregistrement dans le système. - * @return DateTime|null - */ - public function getCreatedAt(): ?DateTime { + */ + public function getCreatedAt(): ?DateTime + { return $this->createdAt; } /** * Gets the endDate property value. Date de fin de contrat effective (optionnelle). - * @return Date|null - */ - public function getEndDate(): ?Date { + */ + public function getEndDate(): ?Date + { return $this->endDate; } /** * Gets the establishment property value. Code de l'établissement d'affectation. - * @return string|null - */ - public function getEstablishment(): ?string { + */ + public function getEstablishment(): ?string + { return $this->establishment; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'createdAt' => fn(ParseNode $n) => $o->setCreatedAt($n->getDateTimeValue()), - 'endDate' => fn(ParseNode $n) => $o->setEndDate($n->getDateValue()), - 'establishment' => fn(ParseNode $n) => $o->setEstablishment($n->getStringValue()), - 'firstName' => fn(ParseNode $n) => $o->setFirstName($n->getStringValue()), - 'lastName' => fn(ParseNode $n) => $o->setLastName($n->getStringValue()), - 'matricule' => fn(ParseNode $n) => $o->setMatricule($n->getStringValue()), - 'plannedEndDate' => fn(ParseNode $n) => $o->setPlannedEndDate($n->getDateValue()), - 'service' => fn(ParseNode $n) => $o->setService($n->getStringValue()), - 'site' => fn(ParseNode $n) => $o->setSite($n->getStringValue()), - 'startDate' => fn(ParseNode $n) => $o->setStartDate($n->getDateValue()), - 'updatedAt' => fn(ParseNode $n) => $o->setUpdatedAt($n->getDateTimeValue()), + + return [ + 'createdAt' => fn (ParseNode $n) => $o->setCreatedAt($n->getDateTimeValue()), + 'endDate' => fn (ParseNode $n) => $o->setEndDate($n->getDateValue()), + 'establishment' => fn (ParseNode $n) => $o->setEstablishment($n->getStringValue()), + 'firstName' => fn (ParseNode $n) => $o->setFirstName($n->getStringValue()), + 'lastName' => fn (ParseNode $n) => $o->setLastName($n->getStringValue()), + 'matricule' => fn (ParseNode $n) => $o->setMatricule($n->getStringValue()), + 'plannedEndDate' => fn (ParseNode $n) => $o->setPlannedEndDate($n->getDateValue()), + 'service' => fn (ParseNode $n) => $o->setService($n->getStringValue()), + 'site' => fn (ParseNode $n) => $o->setSite($n->getStringValue()), + 'startDate' => fn (ParseNode $n) => $o->setStartDate($n->getDateValue()), + 'updatedAt' => fn (ParseNode $n) => $o->setUpdatedAt($n->getDateTimeValue()), ]; } /** * Gets the firstName property value. Prénom de l'employé. - * @return string|null - */ - public function getFirstName(): ?string { + */ + public function getFirstName(): ?string + { return $this->firstName; } /** * Gets the lastName property value. Nom de famille de l'employé. - * @return string|null - */ - public function getLastName(): ?string { + */ + public function getLastName(): ?string + { return $this->lastName; } /** * Gets the matricule property value. Matricule public unique de l'employé (SIRH). - * @return string|null - */ - public function getMatricule(): ?string { + */ + public function getMatricule(): ?string + { return $this->matricule; } /** * Gets the plannedEndDate property value. Date de fin de contrat prévue (optionnelle). - * @return Date|null - */ - public function getPlannedEndDate(): ?Date { + */ + public function getPlannedEndDate(): ?Date + { return $this->plannedEndDate; } /** * Gets the service property value. Identifiant du service interne. - * @return string|null - */ - public function getService(): ?string { + */ + public function getService(): ?string + { return $this->service; } /** * Gets the site property value. Code du site géographique. - * @return string|null - */ - public function getSite(): ?string { + */ + public function getSite(): ?string + { return $this->site; } /** * Gets the startDate property value. Date de prise de poste (YYYY-MM-DD). - * @return Date|null - */ - public function getStartDate(): ?Date { + */ + public function getStartDate(): ?Date + { return $this->startDate; } /** * Gets the updatedAt property value. Date de dernière mise à jour. - * @return DateTime|null - */ - public function getUpdatedAt(): ?DateTime { + */ + 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 { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeDateTimeValue('createdAt', $this->getCreatedAt()); $writer->writeDateValue('endDate', $this->getEndDate()); $writer->writeStringValue('establishment', $this->getEstablishment()); @@ -228,98 +239,121 @@ class Employee implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the createdAt property value. Date d'enregistrement dans le système. - * @param DateTime|null $value Value to set for the createdAt property. - */ - public function setCreatedAt(?DateTime $value): void { + * + * @param DateTime|null $value Value to set for the createdAt property. + */ + public function setCreatedAt(?DateTime $value): void + { $this->createdAt = $value; } /** * Sets the endDate property value. Date de fin de contrat effective (optionnelle). - * @param Date|null $value Value to set for the endDate property. - */ - public function setEndDate(?Date $value): void { + * + * @param Date|null $value Value to set for the endDate property. + */ + public function setEndDate(?Date $value): void + { $this->endDate = $value; } /** * Sets the establishment property value. Code de l'établissement d'affectation. - * @param string|null $value Value to set for the establishment property. - */ - public function setEstablishment(?string $value): void { + * + * @param string|null $value Value to set for the establishment property. + */ + public function setEstablishment(?string $value): void + { $this->establishment = $value; } /** * Sets the firstName property value. Prénom de l'employé. - * @param string|null $value Value to set for the firstName property. - */ - public function setFirstName(?string $value): void { + * + * @param string|null $value Value to set for the firstName property. + */ + public function setFirstName(?string $value): void + { $this->firstName = $value; } /** * Sets the lastName property value. Nom de famille de l'employé. - * @param string|null $value Value to set for the lastName property. - */ - public function setLastName(?string $value): void { + * + * @param string|null $value Value to set for the lastName property. + */ + public function setLastName(?string $value): void + { $this->lastName = $value; } /** * Sets the matricule property value. Matricule public unique de l'employé (SIRH). - * @param string|null $value Value to set for the matricule property. - */ - public function setMatricule(?string $value): void { + * + * @param string|null $value Value to set for the matricule property. + */ + public function setMatricule(?string $value): void + { $this->matricule = $value; } /** * Sets the plannedEndDate property value. Date de fin de contrat prévue (optionnelle). - * @param Date|null $value Value to set for the plannedEndDate property. - */ - public function setPlannedEndDate(?Date $value): void { + * + * @param Date|null $value Value to set for the plannedEndDate property. + */ + public function setPlannedEndDate(?Date $value): void + { $this->plannedEndDate = $value; } /** * Sets the service property value. Identifiant du service interne. - * @param string|null $value Value to set for the service property. - */ - public function setService(?string $value): void { + * + * @param string|null $value Value to set for the service property. + */ + public function setService(?string $value): void + { $this->service = $value; } /** * Sets the site property value. Code du site géographique. - * @param string|null $value Value to set for the site property. - */ - public function setSite(?string $value): void { + * + * @param string|null $value Value to set for the site property. + */ + public function setSite(?string $value): void + { $this->site = $value; } /** * Sets the startDate property value. Date de prise de poste (YYYY-MM-DD). - * @param Date|null $value Value to set for the startDate property. - */ - public function setStartDate(?Date $value): void { + * + * @param Date|null $value Value to set for the startDate property. + */ + public function setStartDate(?Date $value): void + { $this->startDate = $value; } /** * Sets the updatedAt property value. Date de dernière mise à jour. - * @param DateTime|null $value Value to set for the updatedAt property. - */ - public function setUpdatedAt(?DateTime $value): void { + * + * @param DateTime|null $value Value to set for the updatedAt property. + */ + public function setUpdatedAt(?DateTime $value): void + { $this->updatedAt = $value; } - } diff --git a/client/Models/EmployeeItemResponse.php b/client/Models/EmployeeItemResponse.php old mode 100755 new mode 100644 index 603f274..c3a41c9 --- a/client/Models/EmployeeItemResponse.php +++ b/client/Models/EmployeeItemResponse.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 Employee|null $employee Représentation canonique d'un employé dans le métamodèle Arcadia. - */ + * @var Employee|null Représentation canonique d'un employé dans le métamodèle Arcadia. + */ private ?Employee $employee = null; - + /** * Instantiates a new EmployeeItemResponse and sets the default values. - */ - public function __construct() { + */ + 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 EmployeeItemResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): EmployeeItemResponse { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): EmployeeItemResponse + { return new EmployeeItemResponse(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * Gets the employee property value. Représentation canonique d'un employé dans le métamodèle Arcadia. - * @return Employee|null - */ - public function getEmployee(): ?Employee { + */ + public function getEmployee(): ?Employee + { return $this->employee; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'employee' => fn(ParseNode $n) => $o->setEmployee($n->getObjectValue([Employee::class, 'createFromDiscriminatorValue'])), + + return [ + 'employee' => fn (ParseNode $n) => $o->setEmployee($n->getObjectValue([Employee::class, 'createFromDiscriminatorValue'])), ]; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeObjectValue('employee', $this->getEmployee()); $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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the employee property value. Représentation canonique d'un employé dans le métamodèle Arcadia. - * @param Employee|null $value Value to set for the employee property. - */ - public function setEmployee(?Employee $value): void { + * + * @param Employee|null $value Value to set for the employee property. + */ + public function setEmployee(?Employee $value): void + { $this->employee = $value; } - } diff --git a/client/Models/EmployeeListResponse.php b/client/Models/EmployeeListResponse.php old mode 100755 new mode 100644 index 0570c8e..af5e0d3 --- a/client/Models/EmployeeListResponse.php +++ b/client/Models/EmployeeListResponse.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 array|null $employees Collection des employés de la page. - */ + * @var array|null Collection des employés de la page. + */ private ?array $employees = null; - + /** - * @var PaginationMeta|null $pagination Métadonnées de pagination. - */ + * @var PaginationMeta|null Métadonnées de pagination. + */ private ?PaginationMeta $pagination = null; - + /** * Instantiates a new EmployeeListResponse and sets the default values. - */ - public function __construct() { + */ + 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 EmployeeListResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): EmployeeListResponse { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): EmployeeListResponse + { return new EmployeeListResponse(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * Gets the employees property value. Collection des employés de la page. + * * @return array|null - */ - public function getEmployees(): ?array { + */ + public function getEmployees(): ?array + { return $this->employees; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'employees' => fn(ParseNode $n) => $o->setEmployees($n->getCollectionOfObjectValues([Employee::class, 'createFromDiscriminatorValue'])), - 'pagination' => fn(ParseNode $n) => $o->setPagination($n->getObjectValue([PaginationMeta::class, 'createFromDiscriminatorValue'])), + + return [ + 'employees' => fn (ParseNode $n) => $o->setEmployees($n->getCollectionOfObjectValues([Employee::class, 'createFromDiscriminatorValue'])), + 'pagination' => fn (ParseNode $n) => $o->setPagination($n->getObjectValue([PaginationMeta::class, 'createFromDiscriminatorValue'])), ]; } /** * Gets the pagination property value. Métadonnées de pagination. - * @return PaginationMeta|null - */ - public function getPagination(): ?PaginationMeta { + */ + public function getPagination(): ?PaginationMeta + { return $this->pagination; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeCollectionOfObjectValues('employees', $this->getEmployees()); $writer->writeObjectValue('pagination', $this->getPagination()); $writer->writeAdditionalData($this->getAdditionalData()); @@ -91,26 +104,31 @@ class EmployeeListResponse implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the employees property value. Collection des employés de la page. - * @param array|null $value Value to set for the employees property. - */ - public function setEmployees(?array $value): void { + * + * @param array|null $value Value to set for the employees property. + */ + public function setEmployees(?array $value): void + { $this->employees = $value; } /** * Sets the pagination property value. Métadonnées de pagination. - * @param PaginationMeta|null $value Value to set for the pagination property. - */ - public function setPagination(?PaginationMeta $value): void { + * + * @param PaginationMeta|null $value Value to set for the pagination property. + */ + public function setPagination(?PaginationMeta $value): void + { $this->pagination = $value; } - } diff --git a/client/Models/EnergyValues.php b/client/Models/EnergyValues.php old mode 100755 new mode 100644 index abe061d..9f58575 --- a/client/Models/EnergyValues.php +++ b/client/Models/EnergyValues.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 string|null $energyKcal The energyKcal property - */ + * @var string|null The energyKcal property + */ private ?string $energyKcal = null; - + /** - * @var string|null $energyKj The energyKj property - */ + * @var string|null The energyKj property + */ private ?string $energyKj = null; - + /** - * @var string|null $size The size property - */ + * @var string|null The size property + */ private ?string $size = null; - + /** * Instantiates a new EnergyValues and sets the default values. - */ - public function __construct() { + */ + 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 EnergyValues - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): EnergyValues { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): EnergyValues + { return new EnergyValues(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * Gets the energyKcal property value. The energyKcal property - * @return string|null - */ - public function getEnergyKcal(): ?string { + */ + public function getEnergyKcal(): ?string + { return $this->energyKcal; } /** * Gets the energyKj property value. The energyKj property - * @return string|null - */ - public function getEnergyKj(): ?string { + */ + public function getEnergyKj(): ?string + { return $this->energyKj; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'energyKcal' => fn(ParseNode $n) => $o->setEnergyKcal($n->getStringValue()), - 'energyKj' => fn(ParseNode $n) => $o->setEnergyKj($n->getStringValue()), - 'size' => fn(ParseNode $n) => $o->setSize($n->getStringValue()), + + return [ + 'energyKcal' => fn (ParseNode $n) => $o->setEnergyKcal($n->getStringValue()), + 'energyKj' => fn (ParseNode $n) => $o->setEnergyKj($n->getStringValue()), + 'size' => fn (ParseNode $n) => $o->setSize($n->getStringValue()), ]; } /** * Gets the size property value. The size property - * @return string|null - */ - public function getSize(): ?string { + */ + public function getSize(): ?string + { return $this->size; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeStringValue('energyKcal', $this->getEnergyKcal()); $writer->writeStringValue('energyKj', $this->getEnergyKj()); $writer->writeStringValue('size', $this->getSize()); @@ -106,34 +117,41 @@ class EnergyValues implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the energyKcal property value. The energyKcal property - * @param string|null $value Value to set for the energyKcal property. - */ - public function setEnergyKcal(?string $value): void { + * + * @param string|null $value Value to set for the energyKcal property. + */ + public function setEnergyKcal(?string $value): void + { $this->energyKcal = $value; } /** * Sets the energyKj property value. The energyKj property - * @param string|null $value Value to set for the energyKj property. - */ - public function setEnergyKj(?string $value): void { + * + * @param string|null $value Value to set for the energyKj property. + */ + public function setEnergyKj(?string $value): void + { $this->energyKj = $value; } /** * Sets the size property value. The size property - * @param string|null $value Value to set for the size property. - */ - public function setSize(?string $value): void { + * + * @param string|null $value Value to set for the size property. + */ + public function setSize(?string $value): void + { $this->size = $value; } - } diff --git a/client/Models/FruitAndNutAmount.php b/client/Models/FruitAndNutAmount.php old mode 100755 new mode 100644 index 221071d..9d37f72 --- a/client/Models/FruitAndNutAmount.php +++ b/client/Models/FruitAndNutAmount.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 string|null $freshFnl The freshFnl property - */ + * @var string|null The freshFnl property + */ private ?string $freshFnl = null; - + /** - * @var string|null $fruits The fruits property - */ + * @var string|null The fruits property + */ private ?string $fruits = null; - + /** - * @var string|null $nuts The nuts property - */ + * @var string|null The nuts property + */ private ?string $nuts = null; - + /** * Instantiates a new FruitAndNutAmount and sets the default values. - */ - public function __construct() { + */ + 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 FruitAndNutAmount - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): FruitAndNutAmount { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): FruitAndNutAmount + { return new FruitAndNutAmount(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'freshFnl' => fn(ParseNode $n) => $o->setFreshFnl($n->getStringValue()), - 'fruits' => fn(ParseNode $n) => $o->setFruits($n->getStringValue()), - 'nuts' => fn(ParseNode $n) => $o->setNuts($n->getStringValue()), + + return [ + 'freshFnl' => fn (ParseNode $n) => $o->setFreshFnl($n->getStringValue()), + 'fruits' => fn (ParseNode $n) => $o->setFruits($n->getStringValue()), + 'nuts' => fn (ParseNode $n) => $o->setNuts($n->getStringValue()), ]; } /** * Gets the freshFnl property value. The freshFnl property - * @return string|null - */ - public function getFreshFnl(): ?string { + */ + public function getFreshFnl(): ?string + { return $this->freshFnl; } /** * Gets the fruits property value. The fruits property - * @return string|null - */ - public function getFruits(): ?string { + */ + public function getFruits(): ?string + { return $this->fruits; } /** * Gets the nuts property value. The nuts property - * @return string|null - */ - public function getNuts(): ?string { + */ + public function getNuts(): ?string + { return $this->nuts; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeStringValue('freshFnl', $this->getFreshFnl()); $writer->writeStringValue('fruits', $this->getFruits()); $writer->writeStringValue('nuts', $this->getNuts()); @@ -106,34 +117,41 @@ class FruitAndNutAmount implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the freshFnl property value. The freshFnl property - * @param string|null $value Value to set for the freshFnl property. - */ - public function setFreshFnl(?string $value): void { + * + * @param string|null $value Value to set for the freshFnl property. + */ + public function setFreshFnl(?string $value): void + { $this->freshFnl = $value; } /** * Sets the fruits property value. The fruits property - * @param string|null $value Value to set for the fruits property. - */ - public function setFruits(?string $value): void { + * + * @param string|null $value Value to set for the fruits property. + */ + public function setFruits(?string $value): void + { $this->fruits = $value; } /** * Sets the nuts property value. The nuts property - * @param string|null $value Value to set for the nuts property. - */ - public function setNuts(?string $value): void { + * + * @param string|null $value Value to set for the nuts property. + */ + public function setNuts(?string $value): void + { $this->nuts = $value; } - } diff --git a/client/Models/HealthCheckResponse.php b/client/Models/HealthCheckResponse.php old mode 100755 new mode 100644 index 71ff89d..8ed431f --- a/client/Models/HealthCheckResponse.php +++ b/client/Models/HealthCheckResponse.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 HealthCheckResponse_checks|null $checks Détails des vérifications par composant. - */ + * @var HealthCheckResponse_checks|null Détails des vérifications par composant. + */ private ?HealthCheckResponse_checks $checks = null; - + /** - * @var HealthCheckResponse_status|null $status État de santé global du système. - */ + * @var HealthCheckResponse_status|null État de santé global du système. + */ private ?HealthCheckResponse_status $status = null; - + /** - * @var DateTime|null $timestamp Horodatage de la vérification au format RFC 3339 UTC. - */ + * @var DateTime|null Horodatage de la vérification au format RFC 3339 UTC. + */ private ?DateTime $timestamp = null; - + /** * Instantiates a new HealthCheckResponse and sets the default values. - */ - public function __construct() { - parent::__construct(); + */ + 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 HealthCheckResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): HealthCheckResponse { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): HealthCheckResponse + { return new HealthCheckResponse(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * Gets the checks property value. Détails des vérifications par composant. - * @return HealthCheckResponse_checks|null - */ - public function getChecks(): ?HealthCheckResponse_checks { + */ + public function getChecks(): ?HealthCheckResponse_checks + { return $this->checks; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'checks' => fn(ParseNode $n) => $o->setChecks($n->getObjectValue([HealthCheckResponse_checks::class, 'createFromDiscriminatorValue'])), - 'status' => fn(ParseNode $n) => $o->setStatus($n->getEnumValue(HealthCheckResponse_status::class)), - 'timestamp' => fn(ParseNode $n) => $o->setTimestamp($n->getDateTimeValue()), + + return [ + 'checks' => fn (ParseNode $n) => $o->setChecks($n->getObjectValue([HealthCheckResponse_checks::class, 'createFromDiscriminatorValue'])), + 'status' => fn (ParseNode $n) => $o->setStatus($n->getEnumValue(HealthCheckResponse_status::class)), + 'timestamp' => fn (ParseNode $n) => $o->setTimestamp($n->getDateTimeValue()), ]; } /** * The primary error message. - * @return string - */ - public function getPrimaryErrorMessage(): string { + */ + public function getPrimaryErrorMessage(): string + { return parent::getMessage(); } /** * Gets the status property value. État de santé global du système. - * @return HealthCheckResponse_status|null - */ - public function getStatus(): ?HealthCheckResponse_status { + */ + public function getStatus(): ?HealthCheckResponse_status + { return $this->status; } /** * Gets the timestamp property value. Horodatage de la vérification au format RFC 3339 UTC. - * @return DateTime|null - */ - public function getTimestamp(): ?DateTime { + */ + public function getTimestamp(): ?DateTime + { return $this->timestamp; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeObjectValue('checks', $this->getChecks()); $writer->writeEnumValue('status', $this->getStatus()); $writer->writeDateTimeValue('timestamp', $this->getTimestamp()); @@ -117,34 +127,41 @@ class HealthCheckResponse extends ApiException implements AdditionalDataHolder, /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the checks property value. Détails des vérifications par composant. - * @param HealthCheckResponse_checks|null $value Value to set for the checks property. - */ - public function setChecks(?HealthCheckResponse_checks $value): void { + * + * @param HealthCheckResponse_checks|null $value Value to set for the checks property. + */ + public function setChecks(?HealthCheckResponse_checks $value): void + { $this->checks = $value; } /** * Sets the status property value. État de santé global du système. - * @param HealthCheckResponse_status|null $value Value to set for the status property. - */ - public function setStatus(?HealthCheckResponse_status $value): void { + * + * @param HealthCheckResponse_status|null $value Value to set for the status property. + */ + public function setStatus(?HealthCheckResponse_status $value): void + { $this->status = $value; } /** * Sets the timestamp property value. Horodatage de la vérification au format RFC 3339 UTC. - * @param DateTime|null $value Value to set for the timestamp property. - */ - public function setTimestamp(?DateTime $value): void { + * + * @param DateTime|null $value Value to set for the timestamp property. + */ + public function setTimestamp(?DateTime $value): void + { $this->timestamp = $value; } - } diff --git a/client/Models/HealthCheckResponse_checks.php b/client/Models/HealthCheckResponse_checks.php old mode 100755 new mode 100644 index b8cac08..11a5cbb --- a/client/Models/HealthCheckResponse_checks.php +++ b/client/Models/HealthCheckResponse_checks.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ private ?array $additionalData = null; - + /** * Instantiates a new HealthCheckResponse_checks and sets the default values. - */ - public function __construct() { + */ + 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 HealthCheckResponse_checks - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): HealthCheckResponse_checks { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): HealthCheckResponse_checks + { return new HealthCheckResponse_checks(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ + + return [ ]; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } - } diff --git a/client/Models/HealthCheckResponse_status.php b/client/Models/HealthCheckResponse_status.php old mode 100755 new mode 100644 index 3b91251..c0a5cfa --- a/client/Models/HealthCheckResponse_status.php +++ b/client/Models/HealthCheckResponse_status.php @@ -1,10 +1,14 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 array|null $additives The additives property - */ + * @var array|null The additives property + */ private ?array $additives = null; - + /** - * @var IncoAllegations|null $allegations Allégations associées au produit (santé, nutrition, etc.). - */ + * @var IncoAllegations|null Allégations associées au produit (santé, nutrition, etc.). + */ private ?IncoAllegations $allegations = null; - + /** - * @var array|null $allergens The allergens property - */ + * @var array|null The allergens property + */ private ?array $allergens = null; - + /** - * @var IncoBrand|null $brand Marque associée à la fiche produit INCO. - */ + * @var IncoBrand|null Marque associée à la fiche produit INCO. + */ private ?IncoBrand $brand = null; - + /** - * @var DateTime|null $createdAt The createdAt property - */ + * @var DateTime|null The createdAt property + */ private ?DateTime $createdAt = null; - + /** - * @var string|null $description The description property - */ + * @var string|null The description property + */ private ?string $description = null; - + /** - * @var string|null $incoCompoId The incoCompoId property - */ + * @var string|null The incoCompoId property + */ private ?string $incoCompoId = null; - + /** - * @var string|null $incoId The incoId property - */ + * @var string|null The incoId property + */ private ?string $incoId = null; - + /** - * @var IncoIngredients|null $ingredients Liste structurée des ingrédients groupés par section. - */ + * @var IncoIngredients|null Liste structurée des ingrédients groupés par section. + */ private ?IncoIngredients $ingredients = null; - + /** - * @var bool|null $isSeasonal The isSeasonal property - */ + * @var bool|null The isSeasonal property + */ private ?bool $isSeasonal = null; - + /** - * @var string|null $label The label property - */ + * @var string|null The label property + */ private ?string $label = null; - + /** - * @var string|null $name The name property - */ + * @var string|null The name property + */ private ?string $name = null; - + /** - * @var Inco_nutriscore|null $nutriscore The nutriscore property - */ - private ?Inco_nutriscore $nutriscore = null; - + * @var IncoNutriscore|null The nutriscore property + */ + private ?IncoNutriscore $nutriscore = null; + /** - * @var Inco_portions|null $portions The portions property - */ - private ?Inco_portions $portions = null; - + * @var IncoPortionAmount|null The portions property + */ + private ?IncoPortionAmount $portions = null; + /** - * @var string|null $preparationAdvices The preparationAdvices property - */ + * @var string|null The preparationAdvices property + */ private ?string $preparationAdvices = null; - + /** - * @var string|null $sellArguments The sellArguments property - */ + * @var string|null The sellArguments property + */ private ?string $sellArguments = null; - + /** - * @var string|null $sellFamilly The sellFamilly property - */ + * @var string|null The sellFamilly property + */ private ?string $sellFamilly = null; - + /** - * @var Inco_storageCondition|null $storageCondition The storageCondition property - */ - private ?Inco_storageCondition $storageCondition = null; - + * @var IncoStorageCondition|null The storageCondition property + */ + private ?IncoStorageCondition $storageCondition = null; + /** - * @var string|null $tips The tips property - */ + * @var string|null The tips property + */ private ?string $tips = null; - + /** - * @var DateTime|null $updatedAt The updatedAt property - */ + * @var DateTime|null The updatedAt property + */ private ?DateTime $updatedAt = null; - + /** - * @var Inco_weight|null $weight The weight property - */ - private ?Inco_weight $weight = null; - + * @var IncoWeight|null The weight property + */ + private ?IncoWeight $weight = null; + /** * Instantiates a new Inco and sets the default values. - */ - public function __construct() { + */ + 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 Inco - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): Inco { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): Inco + { return new Inco(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * Gets the additives property value. The additives property + * * @return array|null - */ - public function getAdditives(): ?array { + */ + public function getAdditives(): ?array + { return $this->additives; } /** * Gets the allegations property value. Allégations associées au produit (santé, nutrition, etc.). - * @return IncoAllegations|null - */ - public function getAllegations(): ?IncoAllegations { + */ + public function getAllegations(): ?IncoAllegations + { return $this->allegations; } /** * Gets the allergens property value. The allergens property + * * @return array|null - */ - public function getAllergens(): ?array { + */ + public function getAllergens(): ?array + { return $this->allergens; } /** * Gets the brand property value. Marque associée à la fiche produit INCO. - * @return IncoBrand|null - */ - public function getBrand(): ?IncoBrand { + */ + public function getBrand(): ?IncoBrand + { return $this->brand; } /** * Gets the createdAt property value. The createdAt property - * @return DateTime|null - */ - public function getCreatedAt(): ?DateTime { + */ + public function getCreatedAt(): ?DateTime + { return $this->createdAt; } /** * Gets the description property value. The description property - * @return string|null - */ - public function getDescription(): ?string { + */ + public function getDescription(): ?string + { return $this->description; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'additives' => fn(ParseNode $n) => $o->setAdditives($n->getCollectionOfObjectValues([IncoAdditive::class, 'createFromDiscriminatorValue'])), - 'allegations' => fn(ParseNode $n) => $o->setAllegations($n->getObjectValue([IncoAllegations::class, 'createFromDiscriminatorValue'])), - 'allergens' => function (ParseNode $n) { + + return [ + 'additives' => fn (ParseNode $n) => $o->setAdditives($n->getCollectionOfObjectValues([IncoAdditive::class, 'createFromDiscriminatorValue'])), + 'allegations' => fn (ParseNode $n) => $o->setAllegations($n->getObjectValue([IncoAllegations::class, 'createFromDiscriminatorValue'])), + 'allergens' => function (ParseNode $n) { $val = $n->getCollectionOfPrimitiveValues(); if (is_array($val)) { TypeUtils::validateCollectionValues($val, 'string'); @@ -213,152 +226,154 @@ class Inco implements AdditionalDataHolder, Parsable /** @var array|null $val */ $this->setAllergens($val); }, - 'brand' => fn(ParseNode $n) => $o->setBrand($n->getObjectValue([IncoBrand::class, 'createFromDiscriminatorValue'])), - 'createdAt' => fn(ParseNode $n) => $o->setCreatedAt($n->getDateTimeValue()), - 'description' => fn(ParseNode $n) => $o->setDescription($n->getStringValue()), - 'incoCompoId' => fn(ParseNode $n) => $o->setIncoCompoId($n->getStringValue()), - 'incoId' => fn(ParseNode $n) => $o->setIncoId($n->getStringValue()), - 'ingredients' => fn(ParseNode $n) => $o->setIngredients($n->getObjectValue([IncoIngredients::class, 'createFromDiscriminatorValue'])), - 'isSeasonal' => fn(ParseNode $n) => $o->setIsSeasonal($n->getBooleanValue()), - 'label' => fn(ParseNode $n) => $o->setLabel($n->getStringValue()), - 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()), - 'nutriscore' => fn(ParseNode $n) => $o->setNutriscore($n->getObjectValue([Inco_nutriscore::class, 'createFromDiscriminatorValue'])), - 'portions' => fn(ParseNode $n) => $o->setPortions($n->getObjectValue([Inco_portions::class, 'createFromDiscriminatorValue'])), - 'preparationAdvices' => fn(ParseNode $n) => $o->setPreparationAdvices($n->getStringValue()), - 'sellArguments' => fn(ParseNode $n) => $o->setSellArguments($n->getStringValue()), - 'sellFamilly' => fn(ParseNode $n) => $o->setSellFamilly($n->getStringValue()), - 'storageCondition' => fn(ParseNode $n) => $o->setStorageCondition($n->getObjectValue([Inco_storageCondition::class, 'createFromDiscriminatorValue'])), - 'tips' => fn(ParseNode $n) => $o->setTips($n->getStringValue()), - 'updatedAt' => fn(ParseNode $n) => $o->setUpdatedAt($n->getDateTimeValue()), - 'weight' => fn(ParseNode $n) => $o->setWeight($n->getObjectValue([Inco_weight::class, 'createFromDiscriminatorValue'])), + 'brand' => fn (ParseNode $n) => $o->setBrand($n->getObjectValue([IncoBrand::class, 'createFromDiscriminatorValue'])), + 'createdAt' => fn (ParseNode $n) => $o->setCreatedAt($n->getDateTimeValue()), + 'description' => fn (ParseNode $n) => $o->setDescription($n->getStringValue()), + 'incoCompoId' => fn (ParseNode $n) => $o->setIncoCompoId($n->getStringValue()), + 'incoId' => fn (ParseNode $n) => $o->setIncoId($n->getStringValue()), + 'ingredients' => fn (ParseNode $n) => $o->setIngredients($n->getObjectValue([IncoIngredients::class, 'createFromDiscriminatorValue'])), + 'isSeasonal' => fn (ParseNode $n) => $o->setIsSeasonal($n->getBooleanValue()), + 'label' => fn (ParseNode $n) => $o->setLabel($n->getStringValue()), + 'name' => fn (ParseNode $n) => $o->setName($n->getStringValue()), + 'nutriscore' => fn (ParseNode $n) => $o->setNutriscore($n->getObjectValue([IncoNutriscore::class, 'createFromDiscriminatorValue'])), + 'portions' => fn (ParseNode $n) => $o->setPortions($n->getObjectValue([IncoPortionAmount::class, 'createFromDiscriminatorValue'])), + 'preparationAdvices' => fn (ParseNode $n) => $o->setPreparationAdvices($n->getStringValue()), + 'sellArguments' => fn (ParseNode $n) => $o->setSellArguments($n->getStringValue()), + 'sellFamilly' => fn (ParseNode $n) => $o->setSellFamilly($n->getStringValue()), + 'storageCondition' => fn (ParseNode $n) => $o->setStorageCondition($n->getObjectValue([IncoStorageCondition::class, 'createFromDiscriminatorValue'])), + 'tips' => fn (ParseNode $n) => $o->setTips($n->getStringValue()), + 'updatedAt' => fn (ParseNode $n) => $o->setUpdatedAt($n->getDateTimeValue()), + 'weight' => fn (ParseNode $n) => $o->setWeight($n->getObjectValue([IncoWeight::class, 'createFromDiscriminatorValue'])), ]; } /** * Gets the incoCompoId property value. The incoCompoId property - * @return string|null - */ - public function getIncoCompoId(): ?string { + */ + public function getIncoCompoId(): ?string + { return $this->incoCompoId; } /** * Gets the incoId property value. The incoId property - * @return string|null - */ - public function getIncoId(): ?string { + */ + public function getIncoId(): ?string + { return $this->incoId; } /** * Gets the ingredients property value. Liste structurée des ingrédients groupés par section. - * @return IncoIngredients|null - */ - public function getIngredients(): ?IncoIngredients { + */ + public function getIngredients(): ?IncoIngredients + { return $this->ingredients; } /** * Gets the isSeasonal property value. The isSeasonal property - * @return bool|null - */ - public function getIsSeasonal(): ?bool { + */ + public function getIsSeasonal(): ?bool + { return $this->isSeasonal; } /** * Gets the label property value. The label property - * @return string|null - */ - public function getLabel(): ?string { + */ + public function getLabel(): ?string + { return $this->label; } /** * Gets the name property value. The name property - * @return string|null - */ - public function getName(): ?string { + */ + public function getName(): ?string + { return $this->name; } /** * Gets the nutriscore property value. The nutriscore property - * @return Inco_nutriscore|null - */ - public function getNutriscore(): ?Inco_nutriscore { + */ + public function getNutriscore(): ?IncoNutriscore + { return $this->nutriscore; } /** * Gets the portions property value. The portions property - * @return Inco_portions|null - */ - public function getPortions(): ?Inco_portions { + */ + public function getPortions(): ?IncoPortionAmount + { return $this->portions; } /** * Gets the preparationAdvices property value. The preparationAdvices property - * @return string|null - */ - public function getPreparationAdvices(): ?string { + */ + public function getPreparationAdvices(): ?string + { return $this->preparationAdvices; } /** * Gets the sellArguments property value. The sellArguments property - * @return string|null - */ - public function getSellArguments(): ?string { + */ + public function getSellArguments(): ?string + { return $this->sellArguments; } /** * Gets the sellFamilly property value. The sellFamilly property - * @return string|null - */ - public function getSellFamilly(): ?string { + */ + public function getSellFamilly(): ?string + { return $this->sellFamilly; } /** * Gets the storageCondition property value. The storageCondition property - * @return Inco_storageCondition|null - */ - public function getStorageCondition(): ?Inco_storageCondition { + */ + public function getStorageCondition(): ?IncoStorageCondition + { return $this->storageCondition; } /** * Gets the tips property value. The tips property - * @return string|null - */ - public function getTips(): ?string { + */ + public function getTips(): ?string + { return $this->tips; } /** * Gets the updatedAt property value. The updatedAt property - * @return DateTime|null - */ - public function getUpdatedAt(): ?DateTime { + */ + public function getUpdatedAt(): ?DateTime + { return $this->updatedAt; } /** * Gets the weight property value. The weight property - * @return Inco_weight|null - */ - public function getWeight(): ?Inco_weight { + */ + public function getWeight(): ?IncoWeight + { return $this->weight; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeCollectionOfObjectValues('additives', $this->getAdditives()); $writer->writeObjectValue('allegations', $this->getAllegations()); $writer->writeCollectionOfPrimitiveValues('allergens', $this->getAllergens()); @@ -385,178 +400,221 @@ class Inco implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the additives property value. The additives property - * @param array|null $value Value to set for the additives property. - */ - public function setAdditives(?array $value): void { + * + * @param array|null $value Value to set for the additives property. + */ + public function setAdditives(?array $value): void + { $this->additives = $value; } /** * Sets the allegations property value. Allégations associées au produit (santé, nutrition, etc.). - * @param IncoAllegations|null $value Value to set for the allegations property. - */ - public function setAllegations(?IncoAllegations $value): void { + * + * @param IncoAllegations|null $value Value to set for the allegations property. + */ + public function setAllegations(?IncoAllegations $value): void + { $this->allegations = $value; } /** * Sets the allergens property value. The allergens property - * @param array|null $value Value to set for the allergens property. - */ - public function setAllergens(?array $value): void { + * + * @param array|null $value Value to set for the allergens property. + */ + public function setAllergens(?array $value): void + { $this->allergens = $value; } /** * Sets the brand property value. Marque associée à la fiche produit INCO. - * @param IncoBrand|null $value Value to set for the brand property. - */ - public function setBrand(?IncoBrand $value): void { + * + * @param IncoBrand|null $value Value to set for the brand property. + */ + public function setBrand(?IncoBrand $value): void + { $this->brand = $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 { + * + * @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 { + * + * @param string|null $value Value to set for the description property. + */ + public function setDescription(?string $value): void + { $this->description = $value; } /** * Sets the incoCompoId property value. The incoCompoId property - * @param string|null $value Value to set for the incoCompoId property. - */ - public function setIncoCompoId(?string $value): void { + * + * @param string|null $value Value to set for the incoCompoId property. + */ + public function setIncoCompoId(?string $value): void + { $this->incoCompoId = $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 { + * + * @param string|null $value Value to set for the incoId property. + */ + public function setIncoId(?string $value): void + { $this->incoId = $value; } /** * Sets the ingredients property value. Liste structurée des ingrédients groupés par section. - * @param IncoIngredients|null $value Value to set for the ingredients property. - */ - public function setIngredients(?IncoIngredients $value): void { + * + * @param IncoIngredients|null $value Value to set for the ingredients property. + */ + public function setIngredients(?IncoIngredients $value): void + { $this->ingredients = $value; } /** * Sets the isSeasonal property value. The isSeasonal property - * @param bool|null $value Value to set for the isSeasonal property. - */ - public function setIsSeasonal(?bool $value): void { + * + * @param bool|null $value Value to set for the isSeasonal property. + */ + public function setIsSeasonal(?bool $value): void + { $this->isSeasonal = $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 { + * + * @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 { + * + * @param string|null $value Value to set for the name property. + */ + public function setName(?string $value): void + { $this->name = $value; } /** * Sets the nutriscore property value. The nutriscore property - * @param Inco_nutriscore|null $value Value to set for the nutriscore property. - */ - public function setNutriscore(?Inco_nutriscore $value): void { + * + * @param IncoNutriscore|null $value Value to set for the nutriscore property. + */ + public function setNutriscore(?IncoNutriscore $value): void + { $this->nutriscore = $value; } /** * Sets the portions property value. The portions property - * @param Inco_portions|null $value Value to set for the portions property. - */ - public function setPortions(?Inco_portions $value): void { + * + * @param IncoPortionAmount|null $value Value to set for the portions property. + */ + public function setPortions(?IncoPortionAmount $value): void + { $this->portions = $value; } /** * Sets the preparationAdvices property value. The preparationAdvices property - * @param string|null $value Value to set for the preparationAdvices property. - */ - public function setPreparationAdvices(?string $value): void { + * + * @param string|null $value Value to set for the preparationAdvices property. + */ + public function setPreparationAdvices(?string $value): void + { $this->preparationAdvices = $value; } /** * Sets the sellArguments property value. The sellArguments property - * @param string|null $value Value to set for the sellArguments property. - */ - public function setSellArguments(?string $value): void { + * + * @param string|null $value Value to set for the sellArguments property. + */ + public function setSellArguments(?string $value): void + { $this->sellArguments = $value; } /** * Sets the sellFamilly property value. The sellFamilly property - * @param string|null $value Value to set for the sellFamilly property. - */ - public function setSellFamilly(?string $value): void { + * + * @param string|null $value Value to set for the sellFamilly property. + */ + public function setSellFamilly(?string $value): void + { $this->sellFamilly = $value; } /** * Sets the storageCondition property value. The storageCondition property - * @param Inco_storageCondition|null $value Value to set for the storageCondition property. - */ - public function setStorageCondition(?Inco_storageCondition $value): void { + * + * @param IncoStorageCondition|null $value Value to set for the storageCondition property. + */ + public function setStorageCondition(?IncoStorageCondition $value): void + { $this->storageCondition = $value; } /** * Sets the tips property value. The tips property - * @param string|null $value Value to set for the tips property. - */ - public function setTips(?string $value): void { + * + * @param string|null $value Value to set for the tips property. + */ + public function setTips(?string $value): void + { $this->tips = $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 { + * + * @param DateTime|null $value Value to set for the updatedAt property. + */ + public function setUpdatedAt(?DateTime $value): void + { $this->updatedAt = $value; } /** * Sets the weight property value. The weight property - * @param Inco_weight|null $value Value to set for the weight property. - */ - public function setWeight(?Inco_weight $value): void { + * + * @param IncoWeight|null $value Value to set for the weight property. + */ + public function setWeight(?IncoWeight $value): void + { $this->weight = $value; } - } diff --git a/client/Models/IncoAdditive.php b/client/Models/IncoAdditive.php old mode 100755 new mode 100644 index 8bd4297..cb74be7 --- a/client/Models/IncoAdditive.php +++ b/client/Models/IncoAdditive.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 string|null $code The code property - */ + * @var string|null The code property + */ private ?string $code = null; - + /** - * @var string|null $label The label property - */ + * @var string|null The label property + */ private ?string $label = null; - + /** * Instantiates a new IncoAdditive and sets the default values. - */ - public function __construct() { + */ + 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 IncoAdditive - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoAdditive { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoAdditive + { return new IncoAdditive(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * Gets the code property value. The code property - * @return string|null - */ - public function getCode(): ?string { + */ + public function getCode(): ?string + { return $this->code; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'code' => fn(ParseNode $n) => $o->setCode($n->getStringValue()), - 'label' => fn(ParseNode $n) => $o->setLabel($n->getStringValue()), + + return [ + 'code' => fn (ParseNode $n) => $o->setCode($n->getStringValue()), + 'label' => fn (ParseNode $n) => $o->setLabel($n->getStringValue()), ]; } /** * Gets the label property value. The label property - * @return string|null - */ - public function getLabel(): ?string { + */ + public function getLabel(): ?string + { return $this->label; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeStringValue('code', $this->getCode()); $writer->writeStringValue('label', $this->getLabel()); $writer->writeAdditionalData($this->getAdditionalData()); @@ -91,26 +102,31 @@ class IncoAdditive implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the code property value. The code property - * @param string|null $value Value to set for the code property. - */ - public function setCode(?string $value): void { + * + * @param string|null $value Value to set for the code property. + */ + public function setCode(?string $value): void + { $this->code = $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 { + * + * @param string|null $value Value to set for the label property. + */ + public function setLabel(?string $value): void + { $this->label = $value; } - } diff --git a/client/Models/IncoAllegations.php b/client/Models/IncoAllegations.php old mode 100755 new mode 100644 index 292b815..b248cfc --- a/client/Models/IncoAllegations.php +++ b/client/Models/IncoAllegations.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 array|null $allegations The allegations property - */ + * @var array|null The allegations property + */ private ?array $allegations = null; - + /** - * @var array|null $health The health property - */ + * @var array|null The health property + */ private ?array $health = null; - + /** - * @var array|null $nutrition The nutrition property - */ + * @var array|null The nutrition property + */ private ?array $nutrition = null; - + /** - * @var array|null $other The other property - */ + * @var array|null The other property + */ private ?array $other = null; - + /** * Instantiates a new IncoAllegations and sets the default values. - */ - public function __construct() { + */ + 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 IncoAllegations - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoAllegations { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoAllegations + { return new IncoAllegations(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * Gets the allegations property value. The allegations property + * * @return array|null - */ - public function getAllegations(): ?array { + */ + public function getAllegations(): ?array + { return $this->allegations; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ + + return [ 'allegations' => function (ParseNode $n) { $val = $n->getCollectionOfPrimitiveValues(); if (is_array($val)) { @@ -114,33 +125,41 @@ class IncoAllegations implements AdditionalDataHolder, Parsable /** * Gets the health property value. The health property + * * @return array|null - */ - public function getHealth(): ?array { + */ + public function getHealth(): ?array + { return $this->health; } /** * Gets the nutrition property value. The nutrition property + * * @return array|null - */ - public function getNutrition(): ?array { + */ + public function getNutrition(): ?array + { return $this->nutrition; } /** * Gets the other property value. The other property + * * @return array|null - */ - public function getOther(): ?array { + */ + public function getOther(): ?array + { return $this->other; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeCollectionOfPrimitiveValues('allegations', $this->getAllegations()); $writer->writeCollectionOfPrimitiveValues('health', $this->getHealth()); $writer->writeCollectionOfPrimitiveValues('nutrition', $this->getNutrition()); @@ -150,42 +169,51 @@ class IncoAllegations implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the allegations property value. The allegations property - * @param array|null $value Value to set for the allegations property. - */ - public function setAllegations(?array $value): void { + * + * @param array|null $value Value to set for the allegations property. + */ + public function setAllegations(?array $value): void + { $this->allegations = $value; } /** * Sets the health property value. The health property - * @param array|null $value Value to set for the health property. - */ - public function setHealth(?array $value): void { + * + * @param array|null $value Value to set for the health property. + */ + public function setHealth(?array $value): void + { $this->health = $value; } /** * Sets the nutrition property value. The nutrition property - * @param array|null $value Value to set for the nutrition property. - */ - public function setNutrition(?array $value): void { + * + * @param array|null $value Value to set for the nutrition property. + */ + public function setNutrition(?array $value): void + { $this->nutrition = $value; } /** * Sets the other property value. The other property - * @param array|null $value Value to set for the other property. - */ - public function setOther(?array $value): void { + * + * @param array|null $value Value to set for the other property. + */ + public function setOther(?array $value): void + { $this->other = $value; } - } diff --git a/client/Models/IncoBrand.php b/client/Models/IncoBrand.php old mode 100755 new mode 100644 index 41691a3..e4fcf84 --- a/client/Models/IncoBrand.php +++ b/client/Models/IncoBrand.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 string|null $code The code property - */ + * @var string|null The code property + */ private ?string $code = null; - + /** - * @var string|null $label The label property - */ + * @var string|null The label property + */ private ?string $label = null; - + /** * Instantiates a new IncoBrand and sets the default values. - */ - public function __construct() { + */ + 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 IncoBrand - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoBrand { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoBrand + { return new IncoBrand(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * Gets the code property value. The code property - * @return string|null - */ - public function getCode(): ?string { + */ + public function getCode(): ?string + { return $this->code; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'code' => fn(ParseNode $n) => $o->setCode($n->getStringValue()), - 'label' => fn(ParseNode $n) => $o->setLabel($n->getStringValue()), + + return [ + 'code' => fn (ParseNode $n) => $o->setCode($n->getStringValue()), + 'label' => fn (ParseNode $n) => $o->setLabel($n->getStringValue()), ]; } /** * Gets the label property value. The label property - * @return string|null - */ - public function getLabel(): ?string { + */ + public function getLabel(): ?string + { return $this->label; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeStringValue('code', $this->getCode()); $writer->writeStringValue('label', $this->getLabel()); $writer->writeAdditionalData($this->getAdditionalData()); @@ -91,26 +102,31 @@ class IncoBrand implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the code property value. The code property - * @param string|null $value Value to set for the code property. - */ - public function setCode(?string $value): void { + * + * @param string|null $value Value to set for the code property. + */ + public function setCode(?string $value): void + { $this->code = $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 { + * + * @param string|null $value Value to set for the label property. + */ + public function setLabel(?string $value): void + { $this->label = $value; } - } diff --git a/client/Models/IncoCompo.php b/client/Models/IncoCompo.php old mode 100755 new mode 100644 index 6a0eb83..4201b17 --- a/client/Models/IncoCompo.php +++ b/client/Models/IncoCompo.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 IncoCompoAminoAcids|null $aminoAcids Teneur en acides aminés et protéines de lait. - */ + * @var IncoCompoAminoAcids|null Teneur en acides aminés et protéines de lait. + */ private ?IncoCompoAminoAcids $aminoAcids = null; - + /** - * @var IncoCompoCarbohydratesDetail|null $carbohydratesDetail Composition détaillée des glucides et fibres. - */ + * @var IncoCompoCarbohydratesDetail|null Composition détaillée des glucides et fibres. + */ private ?IncoCompoCarbohydratesDetail $carbohydratesDetail = null; - + /** - * @var IncoCompoEnergy|null $energy Valeurs énergétiques. - */ + * @var IncoCompoEnergy|null Valeurs énergétiques. + */ private ?IncoCompoEnergy $energy = null; - + /** - * @var IncoCompoFattyAcids|null $fattyAcids Teneur détaillée en acides gras (AGS, AGMI, AGPI). - */ + * @var IncoCompoFattyAcids|null Teneur détaillée en acides gras (AGS, AGMI, AGPI). + */ private ?IncoCompoFattyAcids $fattyAcids = null; - + /** - * @var IncoCompoFreshProduceAndNuts|null $freshProduceAndNuts Teneur en fruits, légumes et noix (FNL). - */ + * @var IncoCompoFreshProduceAndNuts|null Teneur en fruits, légumes et noix (FNL). + */ private ?IncoCompoFreshProduceAndNuts $freshProduceAndNuts = null; - + /** - * @var IncoCompositionIdentification|null $identification Informations d'identification de la composition INCO. - */ + * @var IncoCompositionIdentification|null Informations d'identification de la composition INCO. + */ private ?IncoCompositionIdentification $identification = null; - + /** - * @var string|null $incoCompoId The incoCompoId property - */ + * @var string|null The incoCompoId property + */ private ?string $incoCompoId = null; - + /** - * @var string|null $incoId The incoId property - */ + * @var string|null The incoId property + */ private ?string $incoId = null; - + /** - * @var IncoCompoMinerals|null $minerals Teneur détaillée en minéraux et oligo-éléments. - */ + * @var IncoCompoMinerals|null Teneur détaillée en minéraux et oligo-éléments. + */ private ?IncoCompoMinerals $minerals = null; - + /** - * @var IncoCompoNutriScore|null $nutriScore Détail des composantes et classement Nutri-Score. - */ + * @var IncoCompoNutriScore|null Détail des composantes et classement Nutri-Score. + */ private ?IncoCompoNutriScore $nutriScore = null; - + /** - * @var IncoCompoNutriScorePoints|null $nutriScorePoints Points élémentaires du calcul Nutri-Score. - */ + * @var IncoCompoNutriScorePoints|null Points élémentaires du calcul Nutri-Score. + */ private ?IncoCompoNutriScorePoints $nutriScorePoints = null; - + /** - * @var IncoCompoPortionMacronutrients|null $portionMacronutrients Macronutriments par portion. - */ + * @var IncoCompoPortionMacronutrients|null Macronutriments par portion. + */ private ?IncoCompoPortionMacronutrients $portionMacronutrients = null; - + /** - * @var IncoCompoReferenceIntakes|null $referenceIntakes Pourcentages des apports de référence (AR / ARIC). - */ + * @var IncoCompoReferenceIntakes|null Pourcentages des apports de référence (AR / ARIC). + */ private ?IncoCompoReferenceIntakes $referenceIntakes = null; - + /** - * @var IncoCompoReferenceMacronutrients|null $referenceMacronutrients Macronutriments de référence pour 100g/ml. - */ + * @var IncoCompoReferenceMacronutrients|null Macronutriments de référence pour 100g/ml. + */ private ?IncoCompoReferenceMacronutrients $referenceMacronutrients = null; - + /** - * @var IncoCompoSpecialCompounds|null $specialCompounds Composés spéciaux (Choline, Carnitine, Taurine, Nucléotides). - */ + * @var IncoCompoSpecialCompounds|null Composés spéciaux (Choline, Carnitine, Taurine, Nucléotides). + */ private ?IncoCompoSpecialCompounds $specialCompounds = null; - + /** - * @var IncoCompoVitamins|null $vitamins Teneur détaillée en vitamines. - */ + * @var IncoCompoVitamins|null Teneur détaillée en vitamines. + */ private ?IncoCompoVitamins $vitamins = null; - + /** * Instantiates a new IncoCompo and sets the default values. - */ - public function __construct() { + */ + 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 IncoCompo - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompo { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompo + { return new IncoCompo(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * Gets the aminoAcids property value. Teneur en acides aminés et protéines de lait. - * @return IncoCompoAminoAcids|null - */ - public function getAminoAcids(): ?IncoCompoAminoAcids { + */ + public function getAminoAcids(): ?IncoCompoAminoAcids + { return $this->aminoAcids; } /** * Gets the carbohydratesDetail property value. Composition détaillée des glucides et fibres. - * @return IncoCompoCarbohydratesDetail|null - */ - public function getCarbohydratesDetail(): ?IncoCompoCarbohydratesDetail { + */ + public function getCarbohydratesDetail(): ?IncoCompoCarbohydratesDetail + { return $this->carbohydratesDetail; } /** * Gets the energy property value. Valeurs énergétiques. - * @return IncoCompoEnergy|null - */ - public function getEnergy(): ?IncoCompoEnergy { + */ + public function getEnergy(): ?IncoCompoEnergy + { return $this->energy; } /** * Gets the fattyAcids property value. Teneur détaillée en acides gras (AGS, AGMI, AGPI). - * @return IncoCompoFattyAcids|null - */ - public function getFattyAcids(): ?IncoCompoFattyAcids { + */ + public function getFattyAcids(): ?IncoCompoFattyAcids + { return $this->fattyAcids; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'aminoAcids' => fn(ParseNode $n) => $o->setAminoAcids($n->getObjectValue([IncoCompoAminoAcids::class, 'createFromDiscriminatorValue'])), - 'carbohydratesDetail' => fn(ParseNode $n) => $o->setCarbohydratesDetail($n->getObjectValue([IncoCompoCarbohydratesDetail::class, 'createFromDiscriminatorValue'])), - 'energy' => fn(ParseNode $n) => $o->setEnergy($n->getObjectValue([IncoCompoEnergy::class, 'createFromDiscriminatorValue'])), - 'fattyAcids' => fn(ParseNode $n) => $o->setFattyAcids($n->getObjectValue([IncoCompoFattyAcids::class, 'createFromDiscriminatorValue'])), - 'freshProduceAndNuts' => fn(ParseNode $n) => $o->setFreshProduceAndNuts($n->getObjectValue([IncoCompoFreshProduceAndNuts::class, 'createFromDiscriminatorValue'])), - 'identification' => fn(ParseNode $n) => $o->setIdentification($n->getObjectValue([IncoCompositionIdentification::class, 'createFromDiscriminatorValue'])), - 'incoCompoId' => fn(ParseNode $n) => $o->setIncoCompoId($n->getStringValue()), - 'incoId' => fn(ParseNode $n) => $o->setIncoId($n->getStringValue()), - 'minerals' => fn(ParseNode $n) => $o->setMinerals($n->getObjectValue([IncoCompoMinerals::class, 'createFromDiscriminatorValue'])), - 'nutriScore' => fn(ParseNode $n) => $o->setNutriScore($n->getObjectValue([IncoCompoNutriScore::class, 'createFromDiscriminatorValue'])), - 'nutriScorePoints' => fn(ParseNode $n) => $o->setNutriScorePoints($n->getObjectValue([IncoCompoNutriScorePoints::class, 'createFromDiscriminatorValue'])), - 'portionMacronutrients' => fn(ParseNode $n) => $o->setPortionMacronutrients($n->getObjectValue([IncoCompoPortionMacronutrients::class, 'createFromDiscriminatorValue'])), - 'referenceIntakes' => fn(ParseNode $n) => $o->setReferenceIntakes($n->getObjectValue([IncoCompoReferenceIntakes::class, 'createFromDiscriminatorValue'])), - 'referenceMacronutrients' => fn(ParseNode $n) => $o->setReferenceMacronutrients($n->getObjectValue([IncoCompoReferenceMacronutrients::class, 'createFromDiscriminatorValue'])), - 'specialCompounds' => fn(ParseNode $n) => $o->setSpecialCompounds($n->getObjectValue([IncoCompoSpecialCompounds::class, 'createFromDiscriminatorValue'])), - 'vitamins' => fn(ParseNode $n) => $o->setVitamins($n->getObjectValue([IncoCompoVitamins::class, 'createFromDiscriminatorValue'])), + + return [ + 'aminoAcids' => fn (ParseNode $n) => $o->setAminoAcids($n->getObjectValue([IncoCompoAminoAcids::class, 'createFromDiscriminatorValue'])), + 'carbohydratesDetail' => fn (ParseNode $n) => $o->setCarbohydratesDetail($n->getObjectValue([IncoCompoCarbohydratesDetail::class, 'createFromDiscriminatorValue'])), + 'energy' => fn (ParseNode $n) => $o->setEnergy($n->getObjectValue([IncoCompoEnergy::class, 'createFromDiscriminatorValue'])), + 'fattyAcids' => fn (ParseNode $n) => $o->setFattyAcids($n->getObjectValue([IncoCompoFattyAcids::class, 'createFromDiscriminatorValue'])), + 'freshProduceAndNuts' => fn (ParseNode $n) => $o->setFreshProduceAndNuts($n->getObjectValue([IncoCompoFreshProduceAndNuts::class, 'createFromDiscriminatorValue'])), + 'identification' => fn (ParseNode $n) => $o->setIdentification($n->getObjectValue([IncoCompositionIdentification::class, 'createFromDiscriminatorValue'])), + 'incoCompoId' => fn (ParseNode $n) => $o->setIncoCompoId($n->getStringValue()), + 'incoId' => fn (ParseNode $n) => $o->setIncoId($n->getStringValue()), + 'minerals' => fn (ParseNode $n) => $o->setMinerals($n->getObjectValue([IncoCompoMinerals::class, 'createFromDiscriminatorValue'])), + 'nutriScore' => fn (ParseNode $n) => $o->setNutriScore($n->getObjectValue([IncoCompoNutriScore::class, 'createFromDiscriminatorValue'])), + 'nutriScorePoints' => fn (ParseNode $n) => $o->setNutriScorePoints($n->getObjectValue([IncoCompoNutriScorePoints::class, 'createFromDiscriminatorValue'])), + 'portionMacronutrients' => fn (ParseNode $n) => $o->setPortionMacronutrients($n->getObjectValue([IncoCompoPortionMacronutrients::class, 'createFromDiscriminatorValue'])), + 'referenceIntakes' => fn (ParseNode $n) => $o->setReferenceIntakes($n->getObjectValue([IncoCompoReferenceIntakes::class, 'createFromDiscriminatorValue'])), + 'referenceMacronutrients' => fn (ParseNode $n) => $o->setReferenceMacronutrients($n->getObjectValue([IncoCompoReferenceMacronutrients::class, 'createFromDiscriminatorValue'])), + 'specialCompounds' => fn (ParseNode $n) => $o->setSpecialCompounds($n->getObjectValue([IncoCompoSpecialCompounds::class, 'createFromDiscriminatorValue'])), + 'vitamins' => fn (ParseNode $n) => $o->setVitamins($n->getObjectValue([IncoCompoVitamins::class, 'createFromDiscriminatorValue'])), ]; } /** * Gets the freshProduceAndNuts property value. Teneur en fruits, légumes et noix (FNL). - * @return IncoCompoFreshProduceAndNuts|null - */ - public function getFreshProduceAndNuts(): ?IncoCompoFreshProduceAndNuts { + */ + public function getFreshProduceAndNuts(): ?IncoCompoFreshProduceAndNuts + { return $this->freshProduceAndNuts; } /** * Gets the identification property value. Informations d'identification de la composition INCO. - * @return IncoCompositionIdentification|null - */ - public function getIdentification(): ?IncoCompositionIdentification { + */ + public function getIdentification(): ?IncoCompositionIdentification + { return $this->identification; } /** * Gets the incoCompoId property value. The incoCompoId property - * @return string|null - */ - public function getIncoCompoId(): ?string { + */ + public function getIncoCompoId(): ?string + { return $this->incoCompoId; } /** * Gets the incoId property value. The incoId property - * @return string|null - */ - public function getIncoId(): ?string { + */ + public function getIncoId(): ?string + { return $this->incoId; } /** * Gets the minerals property value. Teneur détaillée en minéraux et oligo-éléments. - * @return IncoCompoMinerals|null - */ - public function getMinerals(): ?IncoCompoMinerals { + */ + public function getMinerals(): ?IncoCompoMinerals + { return $this->minerals; } /** * Gets the nutriScore property value. Détail des composantes et classement Nutri-Score. - * @return IncoCompoNutriScore|null - */ - public function getNutriScore(): ?IncoCompoNutriScore { + */ + public function getNutriScore(): ?IncoCompoNutriScore + { return $this->nutriScore; } /** * Gets the nutriScorePoints property value. Points élémentaires du calcul Nutri-Score. - * @return IncoCompoNutriScorePoints|null - */ - public function getNutriScorePoints(): ?IncoCompoNutriScorePoints { + */ + public function getNutriScorePoints(): ?IncoCompoNutriScorePoints + { return $this->nutriScorePoints; } /** * Gets the portionMacronutrients property value. Macronutriments par portion. - * @return IncoCompoPortionMacronutrients|null - */ - public function getPortionMacronutrients(): ?IncoCompoPortionMacronutrients { + */ + public function getPortionMacronutrients(): ?IncoCompoPortionMacronutrients + { return $this->portionMacronutrients; } /** * Gets the referenceIntakes property value. Pourcentages des apports de référence (AR / ARIC). - * @return IncoCompoReferenceIntakes|null - */ - public function getReferenceIntakes(): ?IncoCompoReferenceIntakes { + */ + public function getReferenceIntakes(): ?IncoCompoReferenceIntakes + { return $this->referenceIntakes; } /** * Gets the referenceMacronutrients property value. Macronutriments de référence pour 100g/ml. - * @return IncoCompoReferenceMacronutrients|null - */ - public function getReferenceMacronutrients(): ?IncoCompoReferenceMacronutrients { + */ + public function getReferenceMacronutrients(): ?IncoCompoReferenceMacronutrients + { return $this->referenceMacronutrients; } /** * Gets the specialCompounds property value. Composés spéciaux (Choline, Carnitine, Taurine, Nucléotides). - * @return IncoCompoSpecialCompounds|null - */ - public function getSpecialCompounds(): ?IncoCompoSpecialCompounds { + */ + public function getSpecialCompounds(): ?IncoCompoSpecialCompounds + { return $this->specialCompounds; } /** * Gets the vitamins property value. Teneur détaillée en vitamines. - * @return IncoCompoVitamins|null - */ - public function getVitamins(): ?IncoCompoVitamins { + */ + public function getVitamins(): ?IncoCompoVitamins + { return $this->vitamins; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeObjectValue('aminoAcids', $this->getAminoAcids()); $writer->writeObjectValue('carbohydratesDetail', $this->getCarbohydratesDetail()); $writer->writeObjectValue('energy', $this->getEnergy()); @@ -301,138 +312,171 @@ class IncoCompo implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the aminoAcids property value. Teneur en acides aminés et protéines de lait. - * @param IncoCompoAminoAcids|null $value Value to set for the aminoAcids property. - */ - public function setAminoAcids(?IncoCompoAminoAcids $value): void { + * + * @param IncoCompoAminoAcids|null $value Value to set for the aminoAcids property. + */ + public function setAminoAcids(?IncoCompoAminoAcids $value): void + { $this->aminoAcids = $value; } /** * Sets the carbohydratesDetail property value. Composition détaillée des glucides et fibres. - * @param IncoCompoCarbohydratesDetail|null $value Value to set for the carbohydratesDetail property. - */ - public function setCarbohydratesDetail(?IncoCompoCarbohydratesDetail $value): void { + * + * @param IncoCompoCarbohydratesDetail|null $value Value to set for the carbohydratesDetail property. + */ + public function setCarbohydratesDetail(?IncoCompoCarbohydratesDetail $value): void + { $this->carbohydratesDetail = $value; } /** * Sets the energy property value. Valeurs énergétiques. - * @param IncoCompoEnergy|null $value Value to set for the energy property. - */ - public function setEnergy(?IncoCompoEnergy $value): void { + * + * @param IncoCompoEnergy|null $value Value to set for the energy property. + */ + public function setEnergy(?IncoCompoEnergy $value): void + { $this->energy = $value; } /** * Sets the fattyAcids property value. Teneur détaillée en acides gras (AGS, AGMI, AGPI). - * @param IncoCompoFattyAcids|null $value Value to set for the fattyAcids property. - */ - public function setFattyAcids(?IncoCompoFattyAcids $value): void { + * + * @param IncoCompoFattyAcids|null $value Value to set for the fattyAcids property. + */ + public function setFattyAcids(?IncoCompoFattyAcids $value): void + { $this->fattyAcids = $value; } /** * Sets the freshProduceAndNuts property value. Teneur en fruits, légumes et noix (FNL). - * @param IncoCompoFreshProduceAndNuts|null $value Value to set for the freshProduceAndNuts property. - */ - public function setFreshProduceAndNuts(?IncoCompoFreshProduceAndNuts $value): void { + * + * @param IncoCompoFreshProduceAndNuts|null $value Value to set for the freshProduceAndNuts property. + */ + public function setFreshProduceAndNuts(?IncoCompoFreshProduceAndNuts $value): void + { $this->freshProduceAndNuts = $value; } /** * Sets the identification property value. Informations d'identification de la composition INCO. - * @param IncoCompositionIdentification|null $value Value to set for the identification property. - */ - public function setIdentification(?IncoCompositionIdentification $value): void { + * + * @param IncoCompositionIdentification|null $value Value to set for the identification property. + */ + public function setIdentification(?IncoCompositionIdentification $value): void + { $this->identification = $value; } /** * Sets the incoCompoId property value. The incoCompoId property - * @param string|null $value Value to set for the incoCompoId property. - */ - public function setIncoCompoId(?string $value): void { + * + * @param string|null $value Value to set for the incoCompoId property. + */ + public function setIncoCompoId(?string $value): void + { $this->incoCompoId = $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 { + * + * @param string|null $value Value to set for the incoId property. + */ + public function setIncoId(?string $value): void + { $this->incoId = $value; } /** * Sets the minerals property value. Teneur détaillée en minéraux et oligo-éléments. - * @param IncoCompoMinerals|null $value Value to set for the minerals property. - */ - public function setMinerals(?IncoCompoMinerals $value): void { + * + * @param IncoCompoMinerals|null $value Value to set for the minerals property. + */ + public function setMinerals(?IncoCompoMinerals $value): void + { $this->minerals = $value; } /** * Sets the nutriScore property value. Détail des composantes et classement Nutri-Score. - * @param IncoCompoNutriScore|null $value Value to set for the nutriScore property. - */ - public function setNutriScore(?IncoCompoNutriScore $value): void { + * + * @param IncoCompoNutriScore|null $value Value to set for the nutriScore property. + */ + public function setNutriScore(?IncoCompoNutriScore $value): void + { $this->nutriScore = $value; } /** * Sets the nutriScorePoints property value. Points élémentaires du calcul Nutri-Score. - * @param IncoCompoNutriScorePoints|null $value Value to set for the nutriScorePoints property. - */ - public function setNutriScorePoints(?IncoCompoNutriScorePoints $value): void { + * + * @param IncoCompoNutriScorePoints|null $value Value to set for the nutriScorePoints property. + */ + public function setNutriScorePoints(?IncoCompoNutriScorePoints $value): void + { $this->nutriScorePoints = $value; } /** * Sets the portionMacronutrients property value. Macronutriments par portion. - * @param IncoCompoPortionMacronutrients|null $value Value to set for the portionMacronutrients property. - */ - public function setPortionMacronutrients(?IncoCompoPortionMacronutrients $value): void { + * + * @param IncoCompoPortionMacronutrients|null $value Value to set for the portionMacronutrients property. + */ + public function setPortionMacronutrients(?IncoCompoPortionMacronutrients $value): void + { $this->portionMacronutrients = $value; } /** * Sets the referenceIntakes property value. Pourcentages des apports de référence (AR / ARIC). - * @param IncoCompoReferenceIntakes|null $value Value to set for the referenceIntakes property. - */ - public function setReferenceIntakes(?IncoCompoReferenceIntakes $value): void { + * + * @param IncoCompoReferenceIntakes|null $value Value to set for the referenceIntakes property. + */ + public function setReferenceIntakes(?IncoCompoReferenceIntakes $value): void + { $this->referenceIntakes = $value; } /** * Sets the referenceMacronutrients property value. Macronutriments de référence pour 100g/ml. - * @param IncoCompoReferenceMacronutrients|null $value Value to set for the referenceMacronutrients property. - */ - public function setReferenceMacronutrients(?IncoCompoReferenceMacronutrients $value): void { + * + * @param IncoCompoReferenceMacronutrients|null $value Value to set for the referenceMacronutrients property. + */ + public function setReferenceMacronutrients(?IncoCompoReferenceMacronutrients $value): void + { $this->referenceMacronutrients = $value; } /** * Sets the specialCompounds property value. Composés spéciaux (Choline, Carnitine, Taurine, Nucléotides). - * @param IncoCompoSpecialCompounds|null $value Value to set for the specialCompounds property. - */ - public function setSpecialCompounds(?IncoCompoSpecialCompounds $value): void { + * + * @param IncoCompoSpecialCompounds|null $value Value to set for the specialCompounds property. + */ + public function setSpecialCompounds(?IncoCompoSpecialCompounds $value): void + { $this->specialCompounds = $value; } /** * Sets the vitamins property value. Teneur détaillée en vitamines. - * @param IncoCompoVitamins|null $value Value to set for the vitamins property. - */ - public function setVitamins(?IncoCompoVitamins $value): void { + * + * @param IncoCompoVitamins|null $value Value to set for the vitamins property. + */ + public function setVitamins(?IncoCompoVitamins $value): void + { $this->vitamins = $value; } - } diff --git a/client/Models/IncoCompoAminoAcids.php b/client/Models/IncoCompoAminoAcids.php old mode 100755 new mode 100644 index 7585698..d706266 --- a/client/Models/IncoCompoAminoAcids.php +++ b/client/Models/IncoCompoAminoAcids.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 string|null $caseins Caséines (g/100g). - */ + * @var string|null Caséines (g/100g). + */ private ?string $caseins = null; - + /** - * @var string|null $essentialAminoAcids Acides aminés essentiels (total g/100g). - */ + * @var string|null Acides aminés essentiels (total g/100g). + */ private ?string $essentialAminoAcids = null; - + /** - * @var string|null $wheyProtein Protéines de lactosérum (g/100g). - */ + * @var string|null Protéines de lactosérum (g/100g). + */ private ?string $wheyProtein = null; - + /** * Instantiates a new IncoCompoAminoAcids and sets the default values. - */ - public function __construct() { + */ + 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 IncoCompoAminoAcids - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoAminoAcids { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoAminoAcids + { return new IncoCompoAminoAcids(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * Gets the caseins property value. Caséines (g/100g). - * @return string|null - */ - public function getCaseins(): ?string { + */ + public function getCaseins(): ?string + { return $this->caseins; } /** * Gets the essentialAminoAcids property value. Acides aminés essentiels (total g/100g). - * @return string|null - */ - public function getEssentialAminoAcids(): ?string { + */ + public function getEssentialAminoAcids(): ?string + { return $this->essentialAminoAcids; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'caseins' => fn(ParseNode $n) => $o->setCaseins($n->getStringValue()), - 'essentialAminoAcids' => fn(ParseNode $n) => $o->setEssentialAminoAcids($n->getStringValue()), - 'wheyProtein' => fn(ParseNode $n) => $o->setWheyProtein($n->getStringValue()), + + return [ + 'caseins' => fn (ParseNode $n) => $o->setCaseins($n->getStringValue()), + 'essentialAminoAcids' => fn (ParseNode $n) => $o->setEssentialAminoAcids($n->getStringValue()), + 'wheyProtein' => fn (ParseNode $n) => $o->setWheyProtein($n->getStringValue()), ]; } /** * Gets the wheyProtein property value. Protéines de lactosérum (g/100g). - * @return string|null - */ - public function getWheyProtein(): ?string { + */ + public function getWheyProtein(): ?string + { return $this->wheyProtein; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeStringValue('caseins', $this->getCaseins()); $writer->writeStringValue('essentialAminoAcids', $this->getEssentialAminoAcids()); $writer->writeStringValue('wheyProtein', $this->getWheyProtein()); @@ -106,34 +117,41 @@ class IncoCompoAminoAcids implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the caseins property value. Caséines (g/100g). - * @param string|null $value Value to set for the caseins property. - */ - public function setCaseins(?string $value): void { + * + * @param string|null $value Value to set for the caseins property. + */ + public function setCaseins(?string $value): void + { $this->caseins = $value; } /** * Sets the essentialAminoAcids property value. Acides aminés essentiels (total g/100g). - * @param string|null $value Value to set for the essentialAminoAcids property. - */ - public function setEssentialAminoAcids(?string $value): void { + * + * @param string|null $value Value to set for the essentialAminoAcids property. + */ + public function setEssentialAminoAcids(?string $value): void + { $this->essentialAminoAcids = $value; } /** * Sets the wheyProtein property value. Protéines de lactosérum (g/100g). - * @param string|null $value Value to set for the wheyProtein property. - */ - public function setWheyProtein(?string $value): void { + * + * @param string|null $value Value to set for the wheyProtein property. + */ + public function setWheyProtein(?string $value): void + { $this->wheyProtein = $value; } - } diff --git a/client/Models/IncoCompoCarbohydratesDetail.php b/client/Models/IncoCompoCarbohydratesDetail.php old mode 100755 new mode 100644 index dfb0d71..87b4b08 --- a/client/Models/IncoCompoCarbohydratesDetail.php +++ b/client/Models/IncoCompoCarbohydratesDetail.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 string|null $boundFructose The boundFructose property - */ + * @var string|null The boundFructose property + */ private ?string $boundFructose = null; - + /** - * @var string|null $carbohydrateHydrates The carbohydrateHydrates property - */ + * @var string|null The carbohydrateHydrates property + */ private ?string $carbohydrateHydrates = null; - + /** - * @var string|null $freeFructose The freeFructose property - */ + * @var string|null The freeFructose property + */ private ?string $freeFructose = null; - + /** - * @var string|null $galactose The galactose property - */ + * @var string|null The galactose property + */ private ?string $galactose = null; - + /** - * @var string|null $glucose The glucose property - */ + * @var string|null The glucose property + */ private ?string $glucose = null; - + /** - * @var string|null $inositol The inositol property - */ + * @var string|null The inositol property + */ private ?string $inositol = null; - + /** - * @var string|null $lactose The lactose property - */ + * @var string|null The lactose property + */ private ?string $lactose = null; - + /** - * @var string|null $maltodextrin The maltodextrin property - */ + * @var string|null The maltodextrin property + */ private ?string $maltodextrin = null; - + /** - * @var string|null $maltose The maltose property - */ + * @var string|null The maltose property + */ private ?string $maltose = null; - + /** - * @var string|null $oligosaccharides The oligosaccharides property - */ + * @var string|null The oligosaccharides property + */ private ?string $oligosaccharides = null; - + /** - * @var string|null $polyols The polyols property - */ + * @var string|null The polyols property + */ private ?string $polyols = null; - + /** - * @var string|null $solubleFiber The solubleFiber property - */ + * @var string|null The solubleFiber property + */ private ?string $solubleFiber = null; - + /** - * @var string|null $starch The starch property - */ + * @var string|null The starch property + */ private ?string $starch = null; - + /** - * @var string|null $sucrose The sucrose property - */ + * @var string|null The sucrose property + */ private ?string $sucrose = null; - + /** * Instantiates a new IncoCompoCarbohydratesDetail and sets the default values. - */ - public function __construct() { + */ + 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 IncoCompoCarbohydratesDetail - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoCarbohydratesDetail { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoCarbohydratesDetail + { return new IncoCompoCarbohydratesDetail(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * Gets the boundFructose property value. The boundFructose property - * @return string|null - */ - public function getBoundFructose(): ?string { + */ + public function getBoundFructose(): ?string + { return $this->boundFructose; } /** * Gets the carbohydrateHydrates property value. The carbohydrateHydrates property - * @return string|null - */ - public function getCarbohydrateHydrates(): ?string { + */ + public function getCarbohydrateHydrates(): ?string + { return $this->carbohydrateHydrates; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'boundFructose' => fn(ParseNode $n) => $o->setBoundFructose($n->getStringValue()), - 'carbohydrateHydrates' => fn(ParseNode $n) => $o->setCarbohydrateHydrates($n->getStringValue()), - 'freeFructose' => fn(ParseNode $n) => $o->setFreeFructose($n->getStringValue()), - 'galactose' => fn(ParseNode $n) => $o->setGalactose($n->getStringValue()), - 'glucose' => fn(ParseNode $n) => $o->setGlucose($n->getStringValue()), - 'inositol' => fn(ParseNode $n) => $o->setInositol($n->getStringValue()), - 'lactose' => fn(ParseNode $n) => $o->setLactose($n->getStringValue()), - 'maltodextrin' => fn(ParseNode $n) => $o->setMaltodextrin($n->getStringValue()), - 'maltose' => fn(ParseNode $n) => $o->setMaltose($n->getStringValue()), - 'oligosaccharides' => fn(ParseNode $n) => $o->setOligosaccharides($n->getStringValue()), - 'polyols' => fn(ParseNode $n) => $o->setPolyols($n->getStringValue()), - 'solubleFiber' => fn(ParseNode $n) => $o->setSolubleFiber($n->getStringValue()), - 'starch' => fn(ParseNode $n) => $o->setStarch($n->getStringValue()), - 'sucrose' => fn(ParseNode $n) => $o->setSucrose($n->getStringValue()), + + return [ + 'boundFructose' => fn (ParseNode $n) => $o->setBoundFructose($n->getStringValue()), + 'carbohydrateHydrates' => fn (ParseNode $n) => $o->setCarbohydrateHydrates($n->getStringValue()), + 'freeFructose' => fn (ParseNode $n) => $o->setFreeFructose($n->getStringValue()), + 'galactose' => fn (ParseNode $n) => $o->setGalactose($n->getStringValue()), + 'glucose' => fn (ParseNode $n) => $o->setGlucose($n->getStringValue()), + 'inositol' => fn (ParseNode $n) => $o->setInositol($n->getStringValue()), + 'lactose' => fn (ParseNode $n) => $o->setLactose($n->getStringValue()), + 'maltodextrin' => fn (ParseNode $n) => $o->setMaltodextrin($n->getStringValue()), + 'maltose' => fn (ParseNode $n) => $o->setMaltose($n->getStringValue()), + 'oligosaccharides' => fn (ParseNode $n) => $o->setOligosaccharides($n->getStringValue()), + 'polyols' => fn (ParseNode $n) => $o->setPolyols($n->getStringValue()), + 'solubleFiber' => fn (ParseNode $n) => $o->setSolubleFiber($n->getStringValue()), + 'starch' => fn (ParseNode $n) => $o->setStarch($n->getStringValue()), + 'sucrose' => fn (ParseNode $n) => $o->setSucrose($n->getStringValue()), ]; } /** * Gets the freeFructose property value. The freeFructose property - * @return string|null - */ - public function getFreeFructose(): ?string { + */ + public function getFreeFructose(): ?string + { return $this->freeFructose; } /** * Gets the galactose property value. The galactose property - * @return string|null - */ - public function getGalactose(): ?string { + */ + public function getGalactose(): ?string + { return $this->galactose; } /** * Gets the glucose property value. The glucose property - * @return string|null - */ - public function getGlucose(): ?string { + */ + public function getGlucose(): ?string + { return $this->glucose; } /** * Gets the inositol property value. The inositol property - * @return string|null - */ - public function getInositol(): ?string { + */ + public function getInositol(): ?string + { return $this->inositol; } /** * Gets the lactose property value. The lactose property - * @return string|null - */ - public function getLactose(): ?string { + */ + public function getLactose(): ?string + { return $this->lactose; } /** * Gets the maltodextrin property value. The maltodextrin property - * @return string|null - */ - public function getMaltodextrin(): ?string { + */ + public function getMaltodextrin(): ?string + { return $this->maltodextrin; } /** * Gets the maltose property value. The maltose property - * @return string|null - */ - public function getMaltose(): ?string { + */ + public function getMaltose(): ?string + { return $this->maltose; } /** * Gets the oligosaccharides property value. The oligosaccharides property - * @return string|null - */ - public function getOligosaccharides(): ?string { + */ + public function getOligosaccharides(): ?string + { return $this->oligosaccharides; } /** * Gets the polyols property value. The polyols property - * @return string|null - */ - public function getPolyols(): ?string { + */ + public function getPolyols(): ?string + { return $this->polyols; } /** * Gets the solubleFiber property value. The solubleFiber property - * @return string|null - */ - public function getSolubleFiber(): ?string { + */ + public function getSolubleFiber(): ?string + { return $this->solubleFiber; } /** * Gets the starch property value. The starch property - * @return string|null - */ - public function getStarch(): ?string { + */ + public function getStarch(): ?string + { return $this->starch; } /** * Gets the sucrose property value. The sucrose property - * @return string|null - */ - public function getSucrose(): ?string { + */ + public function getSucrose(): ?string + { return $this->sucrose; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeStringValue('boundFructose', $this->getBoundFructose()); $writer->writeStringValue('carbohydrateHydrates', $this->getCarbohydrateHydrates()); $writer->writeStringValue('freeFructose', $this->getFreeFructose()); @@ -271,122 +282,151 @@ class IncoCompoCarbohydratesDetail implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the boundFructose property value. The boundFructose property - * @param string|null $value Value to set for the boundFructose property. - */ - public function setBoundFructose(?string $value): void { + * + * @param string|null $value Value to set for the boundFructose property. + */ + public function setBoundFructose(?string $value): void + { $this->boundFructose = $value; } /** * Sets the carbohydrateHydrates property value. The carbohydrateHydrates property - * @param string|null $value Value to set for the carbohydrateHydrates property. - */ - public function setCarbohydrateHydrates(?string $value): void { + * + * @param string|null $value Value to set for the carbohydrateHydrates property. + */ + public function setCarbohydrateHydrates(?string $value): void + { $this->carbohydrateHydrates = $value; } /** * Sets the freeFructose property value. The freeFructose property - * @param string|null $value Value to set for the freeFructose property. - */ - public function setFreeFructose(?string $value): void { + * + * @param string|null $value Value to set for the freeFructose property. + */ + public function setFreeFructose(?string $value): void + { $this->freeFructose = $value; } /** * Sets the galactose property value. The galactose property - * @param string|null $value Value to set for the galactose property. - */ - public function setGalactose(?string $value): void { + * + * @param string|null $value Value to set for the galactose property. + */ + public function setGalactose(?string $value): void + { $this->galactose = $value; } /** * Sets the glucose property value. The glucose property - * @param string|null $value Value to set for the glucose property. - */ - public function setGlucose(?string $value): void { + * + * @param string|null $value Value to set for the glucose property. + */ + public function setGlucose(?string $value): void + { $this->glucose = $value; } /** * Sets the inositol property value. The inositol property - * @param string|null $value Value to set for the inositol property. - */ - public function setInositol(?string $value): void { + * + * @param string|null $value Value to set for the inositol property. + */ + public function setInositol(?string $value): void + { $this->inositol = $value; } /** * Sets the lactose property value. The lactose property - * @param string|null $value Value to set for the lactose property. - */ - public function setLactose(?string $value): void { + * + * @param string|null $value Value to set for the lactose property. + */ + public function setLactose(?string $value): void + { $this->lactose = $value; } /** * Sets the maltodextrin property value. The maltodextrin property - * @param string|null $value Value to set for the maltodextrin property. - */ - public function setMaltodextrin(?string $value): void { + * + * @param string|null $value Value to set for the maltodextrin property. + */ + public function setMaltodextrin(?string $value): void + { $this->maltodextrin = $value; } /** * Sets the maltose property value. The maltose property - * @param string|null $value Value to set for the maltose property. - */ - public function setMaltose(?string $value): void { + * + * @param string|null $value Value to set for the maltose property. + */ + public function setMaltose(?string $value): void + { $this->maltose = $value; } /** * Sets the oligosaccharides property value. The oligosaccharides property - * @param string|null $value Value to set for the oligosaccharides property. - */ - public function setOligosaccharides(?string $value): void { + * + * @param string|null $value Value to set for the oligosaccharides property. + */ + public function setOligosaccharides(?string $value): void + { $this->oligosaccharides = $value; } /** * Sets the polyols property value. The polyols property - * @param string|null $value Value to set for the polyols property. - */ - public function setPolyols(?string $value): void { + * + * @param string|null $value Value to set for the polyols property. + */ + public function setPolyols(?string $value): void + { $this->polyols = $value; } /** * Sets the solubleFiber property value. The solubleFiber property - * @param string|null $value Value to set for the solubleFiber property. - */ - public function setSolubleFiber(?string $value): void { + * + * @param string|null $value Value to set for the solubleFiber property. + */ + public function setSolubleFiber(?string $value): void + { $this->solubleFiber = $value; } /** * Sets the starch property value. The starch property - * @param string|null $value Value to set for the starch property. - */ - public function setStarch(?string $value): void { + * + * @param string|null $value Value to set for the starch property. + */ + public function setStarch(?string $value): void + { $this->starch = $value; } /** * Sets the sucrose property value. The sucrose property - * @param string|null $value Value to set for the sucrose property. - */ - public function setSucrose(?string $value): void { + * + * @param string|null $value Value to set for the sucrose property. + */ + public function setSucrose(?string $value): void + { $this->sucrose = $value; } - } diff --git a/client/Models/IncoCompoEnergy.php b/client/Models/IncoCompoEnergy.php old mode 100755 new mode 100644 index 5d70778..04f46d2 --- a/client/Models/IncoCompoEnergy.php +++ b/client/Models/IncoCompoEnergy.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 EnergyValues|null $portion Quantités d'énergie (portion ou référence). - */ + * @var EnergyValues|null Quantités d'énergie (portion ou référence). + */ private ?EnergyValues $portion = null; - + /** - * @var EnergyValues|null $reference Quantités d'énergie (portion ou référence). - */ + * @var EnergyValues|null Quantités d'énergie (portion ou référence). + */ private ?EnergyValues $reference = null; - + /** * Instantiates a new IncoCompoEnergy and sets the default values. - */ - public function __construct() { + */ + 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 IncoCompoEnergy - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoEnergy { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoEnergy + { return new IncoCompoEnergy(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'portion' => fn(ParseNode $n) => $o->setPortion($n->getObjectValue([EnergyValues::class, 'createFromDiscriminatorValue'])), - 'reference' => fn(ParseNode $n) => $o->setReference($n->getObjectValue([EnergyValues::class, 'createFromDiscriminatorValue'])), + + return [ + 'portion' => fn (ParseNode $n) => $o->setPortion($n->getObjectValue([EnergyValues::class, 'createFromDiscriminatorValue'])), + 'reference' => fn (ParseNode $n) => $o->setReference($n->getObjectValue([EnergyValues::class, 'createFromDiscriminatorValue'])), ]; } /** * Gets the portion property value. Quantités d'énergie (portion ou référence). - * @return EnergyValues|null - */ - public function getPortion(): ?EnergyValues { + */ + public function getPortion(): ?EnergyValues + { return $this->portion; } /** * Gets the reference property value. Quantités d'énergie (portion ou référence). - * @return EnergyValues|null - */ - public function getReference(): ?EnergyValues { + */ + public function getReference(): ?EnergyValues + { return $this->reference; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeObjectValue('portion', $this->getPortion()); $writer->writeObjectValue('reference', $this->getReference()); $writer->writeAdditionalData($this->getAdditionalData()); @@ -91,26 +102,31 @@ class IncoCompoEnergy implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the portion property value. Quantités d'énergie (portion ou référence). - * @param EnergyValues|null $value Value to set for the portion property. - */ - public function setPortion(?EnergyValues $value): void { + * + * @param EnergyValues|null $value Value to set for the portion property. + */ + public function setPortion(?EnergyValues $value): void + { $this->portion = $value; } /** * Sets the reference property value. Quantités d'énergie (portion ou référence). - * @param EnergyValues|null $value Value to set for the reference property. - */ - public function setReference(?EnergyValues $value): void { + * + * @param EnergyValues|null $value Value to set for the reference property. + */ + public function setReference(?EnergyValues $value): void + { $this->reference = $value; } - } diff --git a/client/Models/IncoCompoFattyAcids.php b/client/Models/IncoCompoFattyAcids.php old mode 100755 new mode 100644 index 7ce178d..b423bf2 --- a/client/Models/IncoCompoFattyAcids.php +++ b/client/Models/IncoCompoFattyAcids.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 string|null $nutAgt Acides gras trans (g/100g). - */ + * @var string|null Acides gras trans (g/100g). + */ private ?string $nutAgt = null; - + /** - * @var string|null $nutChol Cholestérol (mg/100g). - */ + * @var string|null Cholestérol (mg/100g). + */ private ?string $nutChol = null; - + /** - * @var string|null $nutF11eico Acide gondoïque (C20:1). - */ + * @var string|null Acide gondoïque (C20:1). + */ private ?string $nutF11eico = null; - + /** - * @var string|null $nutF16d0 Acide palmitique (C16:0). - */ + * @var string|null Acide palmitique (C16:0). + */ private ?string $nutF16d0 = null; - + /** - * @var string|null $nutF18d C18 insaturé (générique). - */ + * @var string|null C18 insaturé (générique). + */ private ?string $nutF18d = null; - + /** - * @var string|null $nutF18d2cn6 Acide linoléique (C18:2 ω-6). - */ + * @var string|null Acide linoléique (C18:2 ω-6). + */ private ?string $nutF18d2cn6 = null; - + /** - * @var string|null $nutF18d3n3 Acide α-linolénique (C18:3 ω-3). - */ + * @var string|null Acide α-linolénique (C18:3 ω-3). + */ private ?string $nutF18d3n3 = null; - + /** - * @var string|null $nutF19d C19 insaturé. - */ + * @var string|null C19 insaturé. + */ private ?string $nutF19d = null; - + /** - * @var string|null $nutF20d4 Acide arachidonique (C20:4). - */ + * @var string|null Acide arachidonique (C20:4). + */ private ?string $nutF20d4 = null; - + /** - * @var string|null $nutF20d5n3 EPA (C20:5 ω-3). - */ + * @var string|null EPA (C20:5 ω-3). + */ private ?string $nutF20d5n3 = null; - + /** - * @var string|null $nutF22d6n3 DHA (C22:6 ω-3). - */ + * @var string|null DHA (C22:6 ω-3). + */ private ?string $nutF22d6n3 = null; - + /** - * @var string|null $nutFacetiq Acide acétique (C2:0). - */ + * @var string|null Acide acétique (C2:0). + */ private ?string $nutFacetiq = null; - + /** - * @var string|null $nutFamscis AG monoinsaturés cis (total). - */ + * @var string|null AG monoinsaturés cis (total). + */ private ?string $nutFamscis = null; - + /** - * @var string|null $nutFapucis AGPI cis (total). - */ + * @var string|null AGPI cis (total). + */ private ?string $nutFapucis = null; - + /** - * @var string|null $nutFapulc AGPI longue chaîne (total). - */ + * @var string|null AGPI longue chaîne (total). + */ private ?string $nutFapulc = null; - + /** - * @var string|null $nutFapun3 AGPI ω-3 (total). - */ + * @var string|null AGPI ω-3 (total). + */ private ?string $nutFapun3 = null; - + /** - * @var string|null $nutFapun6 AGPI ω-6 (total). - */ + * @var string|null AGPI ω-6 (total). + */ private ?string $nutFapun6 = null; - + /** - * @var string|null $nutFapun9 AGPI ω-9 (total). - */ + * @var string|null AGPI ω-9 (total). + */ private ?string $nutFapun9 = null; - + /** - * @var string|null $nutFarachidiq Acide arachidique (C20:0). - */ + * @var string|null Acide arachidique (C20:0). + */ private ?string $nutFarachidiq = null; - + /** - * @var string|null $nutFbeheniq Acide béhénique (C22:0). - */ + * @var string|null Acide béhénique (C22:0). + */ private ?string $nutFbeheniq = null; - + /** - * @var string|null $nutFbutyriq Acide butyrique (C4:0). - */ + * @var string|null Acide butyrique (C4:0). + */ private ?string $nutFbutyriq = null; - + /** - * @var string|null $nutFcapriq Acide caprique (C10:0). - */ + * @var string|null Acide caprique (C10:0). + */ private ?string $nutFcapriq = null; - + /** - * @var string|null $nutFcaproiq Acide caproïque (C6:0). - */ + * @var string|null Acide caproïque (C6:0). + */ private ?string $nutFcaproiq = null; - + /** - * @var string|null $nutFcapryliq Acide caprylique (C8:0). - */ + * @var string|null Acide caprylique (C8:0). + */ private ?string $nutFcapryliq = null; - + /** - * @var string|null $nutFcarboceriq Acide carbocérique (C26:0). - */ + * @var string|null Acide carbocérique (C26:0). + */ private ?string $nutFcarboceriq = null; - + /** - * @var string|null $nutFceroplastiq Acide céroplastique. - */ + * @var string|null Acide céroplastique. + */ private ?string $nutFceroplastiq = null; - + /** - * @var string|null $nutFcerotiq Acide cérotique (C26:0 alt.). - */ + * @var string|null Acide cérotique (C26:0 alt.). + */ private ?string $nutFcerotiq = null; - + /** - * @var string|null $nutFd Lipides totaux (g/100g). - */ + * @var string|null Lipides totaux (g/100g). + */ private ?string $nutFd = null; - + /** - * @var string|null $nutFenatiq Acide énanthique (C7:0). - */ + * @var string|null Acide énanthique (C7:0). + */ private ?string $nutFenatiq = null; - + /** - * @var string|null $nutFeruciq Acide érucique (C22:1). - */ + * @var string|null Acide érucique (C22:1). + */ private ?string $nutFeruciq = null; - + /** - * @var string|null $nutFformiq Acide formique (C1:0). - */ + * @var string|null Acide formique (C1:0). + */ private ?string $nutFformiq = null; - + /** - * @var string|null $nutFgeddiq Acide geddique (C20:1 alt.). - */ + * @var string|null Acide geddique (C20:1 alt.). + */ private ?string $nutFgeddiq = null; - + /** - * @var string|null $nutFheneicosyliq Acide héneicosylique (C21:0). - */ + * @var string|null Acide héneicosylique (C21:0). + */ private ?string $nutFheneicosyliq = null; - + /** - * @var string|null $nutFhentriacontyliq Acide hentriacontylique (C31:0). - */ + * @var string|null Acide hentriacontylique (C31:0). + */ private ?string $nutFhentriacontyliq = null; - + /** - * @var string|null $nutFheptatriacontyliq Acide heptatriacontylique (C37:0). - */ + * @var string|null Acide heptatriacontylique (C37:0). + */ private ?string $nutFheptatriacontyliq = null; - + /** - * @var string|null $nutFhextriacontyliq Acide hexatriacontylique (C36:0). - */ + * @var string|null Acide hexatriacontylique (C36:0). + */ private ?string $nutFhextriacontyliq = null; - + /** - * @var string|null $nutFhyeniq Acide hyénique. - */ + * @var string|null Acide hyénique. + */ private ?string $nutFhyeniq = null; - + /** - * @var string|null $nutFlaceroiq Acide lacéroïque (C32:0). - */ + * @var string|null Acide lacéroïque (C32:0). + */ private ?string $nutFlaceroiq = null; - + /** - * @var string|null $nutFlauriq Acide laurique (C12:0). - */ + * @var string|null Acide laurique (C12:0). + */ private ?string $nutFlauriq = null; - + /** - * @var string|null $nutFlignoceriq Acide lignocérique (C24:0). - */ + * @var string|null Acide lignocérique (C24:0). + */ private ?string $nutFlignoceriq = null; - + /** - * @var string|null $nutFmargariq Acide margarique (C17:0). - */ + * @var string|null Acide margarique (C17:0). + */ private ?string $nutFmargariq = null; - + /** - * @var string|null $nutFmelissiq Acide mélissique (C30:0). - */ + * @var string|null Acide mélissique (C30:0). + */ private ?string $nutFmelissiq = null; - + /** - * @var string|null $nutFmontaniq Acide montanique (C28:0). - */ + * @var string|null Acide montanique (C28:0). + */ private ?string $nutFmontaniq = null; - + /** - * @var string|null $nutFmyristiq Acide myristique (C14:0). - */ + * @var string|null Acide myristique (C14:0). + */ private ?string $nutFmyristiq = null; - + /** - * @var string|null $nutFnervoniq Acide nervonique (C24:1). - */ + * @var string|null Acide nervonique (C24:1). + */ private ?string $nutFnervoniq = null; - + /** - * @var string|null $nutFnonacosyliq Acide nonacosylique (C29:0). - */ + * @var string|null Acide nonacosylique (C29:0). + */ private ?string $nutFnonacosyliq = null; - + /** - * @var string|null $nutFnonadylique Acide nonadylique. - */ + * @var string|null Acide nonadylique. + */ private ?string $nutFnonadylique = null; - + /** - * @var string|null $nutFoctatriacontyliq Acide octariacontylique (C38:0). - */ + * @var string|null Acide octariacontylique (C38:0). + */ private ?string $nutFoctatriacontyliq = null; - + /** - * @var string|null $nutFoleiq Acide oléique (C18:1 ω-9). - */ + * @var string|null Acide oléique (C18:1 ω-9). + */ private ?string $nutFoleiq = null; - + /** - * @var string|null $nutFpalm Acide palmitoléique (C16:1). - */ + * @var string|null Acide palmitoléique (C16:1). + */ private ?string $nutFpalm = null; - + /** - * @var string|null $nutFpelargoniq Acide pélargonique (C9:0). - */ + * @var string|null Acide pélargonique (C9:0). + */ private ?string $nutFpelargoniq = null; - + /** - * @var string|null $nutFpentadecyliq Acide pentadécylique (C15:0). - */ + * @var string|null Acide pentadécylique (C15:0). + */ private ?string $nutFpentadecyliq = null; - + /** - * @var string|null $nutFpropioniq Acide propionique (C3:0). - */ + * @var string|null Acide propionique (C3:0). + */ private ?string $nutFpropioniq = null; - + /** - * @var string|null $nutFpsylliq Acide psyllique. - */ + * @var string|null Acide psyllique. + */ private ?string $nutFpsylliq = null; - + /** - * @var string|null $nutFsteariq Acide stéarique (C18:0). - */ + * @var string|null Acide stéarique (C18:0). + */ private ?string $nutFsteariq = null; - + /** - * @var string|null $nutFtricosiliq Acide tétracosanoïque (C23:0). - */ + * @var string|null Acide tétracosanoïque (C23:0). + */ private ?string $nutFtricosiliq = null; - + /** - * @var string|null $nutFtridecyliq Acide tridécylique (C13:0). - */ + * @var string|null Acide tridécylique (C13:0). + */ private ?string $nutFtridecyliq = null; - + /** - * @var string|null $nutFundecyliq Acide undécylique (C11:0). - */ + * @var string|null Acide undécylique (C11:0). + */ private ?string $nutFundecyliq = null; - + /** - * @var string|null $nutFvaleriq Acide valérique (C5:0). - */ + * @var string|null Acide valérique (C5:0). + */ private ?string $nutFvaleriq = null; - + /** * Instantiates a new IncoCompoFattyAcids and sets the default values. - */ - public function __construct() { + */ + 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 IncoCompoFattyAcids - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoFattyAcids { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoFattyAcids + { return new IncoCompoFattyAcids(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'nutAgt' => fn(ParseNode $n) => $o->setNutAgt($n->getStringValue()), - 'nutChol' => fn(ParseNode $n) => $o->setNutChol($n->getStringValue()), - 'nutF11eico' => fn(ParseNode $n) => $o->setNutF11eico($n->getStringValue()), - 'nutF16d0' => fn(ParseNode $n) => $o->setNutF16d0($n->getStringValue()), - 'nutF18d' => fn(ParseNode $n) => $o->setNutF18d($n->getStringValue()), - 'nutF18d2cn6' => fn(ParseNode $n) => $o->setNutF18d2cn6($n->getStringValue()), - 'nutF18d3n3' => fn(ParseNode $n) => $o->setNutF18d3n3($n->getStringValue()), - 'nutF19d' => fn(ParseNode $n) => $o->setNutF19d($n->getStringValue()), - 'nutF20d4' => fn(ParseNode $n) => $o->setNutF20d4($n->getStringValue()), - 'nutF20d5n3' => fn(ParseNode $n) => $o->setNutF20d5n3($n->getStringValue()), - 'nutF22d6n3' => fn(ParseNode $n) => $o->setNutF22d6n3($n->getStringValue()), - 'nutFacetiq' => fn(ParseNode $n) => $o->setNutFacetiq($n->getStringValue()), - 'nutFamscis' => fn(ParseNode $n) => $o->setNutFamscis($n->getStringValue()), - 'nutFapucis' => fn(ParseNode $n) => $o->setNutFapucis($n->getStringValue()), - 'nutFapulc' => fn(ParseNode $n) => $o->setNutFapulc($n->getStringValue()), - 'nutFapun3' => fn(ParseNode $n) => $o->setNutFapun3($n->getStringValue()), - 'nutFapun6' => fn(ParseNode $n) => $o->setNutFapun6($n->getStringValue()), - 'nutFapun9' => fn(ParseNode $n) => $o->setNutFapun9($n->getStringValue()), - 'nutFarachidiq' => fn(ParseNode $n) => $o->setNutFarachidiq($n->getStringValue()), - 'nutFbeheniq' => fn(ParseNode $n) => $o->setNutFbeheniq($n->getStringValue()), - 'nutFbutyriq' => fn(ParseNode $n) => $o->setNutFbutyriq($n->getStringValue()), - 'nutFcapriq' => fn(ParseNode $n) => $o->setNutFcapriq($n->getStringValue()), - 'nutFcaproiq' => fn(ParseNode $n) => $o->setNutFcaproiq($n->getStringValue()), - 'nutFcapryliq' => fn(ParseNode $n) => $o->setNutFcapryliq($n->getStringValue()), - 'nutFcarboceriq' => fn(ParseNode $n) => $o->setNutFcarboceriq($n->getStringValue()), - 'nutFceroplastiq' => fn(ParseNode $n) => $o->setNutFceroplastiq($n->getStringValue()), - 'nutFcerotiq' => fn(ParseNode $n) => $o->setNutFcerotiq($n->getStringValue()), - 'nutFd' => fn(ParseNode $n) => $o->setNutFd($n->getStringValue()), - 'nutFenatiq' => fn(ParseNode $n) => $o->setNutFenatiq($n->getStringValue()), - 'nutFeruciq' => fn(ParseNode $n) => $o->setNutFeruciq($n->getStringValue()), - 'nutFformiq' => fn(ParseNode $n) => $o->setNutFformiq($n->getStringValue()), - 'nutFgeddiq' => fn(ParseNode $n) => $o->setNutFgeddiq($n->getStringValue()), - 'nutFheneicosyliq' => fn(ParseNode $n) => $o->setNutFheneicosyliq($n->getStringValue()), - 'nutFhentriacontyliq' => fn(ParseNode $n) => $o->setNutFhentriacontyliq($n->getStringValue()), - 'nutFheptatriacontyliq' => fn(ParseNode $n) => $o->setNutFheptatriacontyliq($n->getStringValue()), - 'nutFhextriacontyliq' => fn(ParseNode $n) => $o->setNutFhextriacontyliq($n->getStringValue()), - 'nutFhyeniq' => fn(ParseNode $n) => $o->setNutFhyeniq($n->getStringValue()), - 'nutFlaceroiq' => fn(ParseNode $n) => $o->setNutFlaceroiq($n->getStringValue()), - 'nutFlauriq' => fn(ParseNode $n) => $o->setNutFlauriq($n->getStringValue()), - 'nutFlignoceriq' => fn(ParseNode $n) => $o->setNutFlignoceriq($n->getStringValue()), - 'nutFmargariq' => fn(ParseNode $n) => $o->setNutFmargariq($n->getStringValue()), - 'nutFmelissiq' => fn(ParseNode $n) => $o->setNutFmelissiq($n->getStringValue()), - 'nutFmontaniq' => fn(ParseNode $n) => $o->setNutFmontaniq($n->getStringValue()), - 'nutFmyristiq' => fn(ParseNode $n) => $o->setNutFmyristiq($n->getStringValue()), - 'nutFnervoniq' => fn(ParseNode $n) => $o->setNutFnervoniq($n->getStringValue()), - 'nutFnonacosyliq' => fn(ParseNode $n) => $o->setNutFnonacosyliq($n->getStringValue()), - 'nutFnonadylique' => fn(ParseNode $n) => $o->setNutFnonadylique($n->getStringValue()), - 'nutFoctatriacontyliq' => fn(ParseNode $n) => $o->setNutFoctatriacontyliq($n->getStringValue()), - 'nutFoleiq' => fn(ParseNode $n) => $o->setNutFoleiq($n->getStringValue()), - 'nutFpalm' => fn(ParseNode $n) => $o->setNutFpalm($n->getStringValue()), - 'nutFpelargoniq' => fn(ParseNode $n) => $o->setNutFpelargoniq($n->getStringValue()), - 'nutFpentadecyliq' => fn(ParseNode $n) => $o->setNutFpentadecyliq($n->getStringValue()), - 'nutFpropioniq' => fn(ParseNode $n) => $o->setNutFpropioniq($n->getStringValue()), - 'nutFpsylliq' => fn(ParseNode $n) => $o->setNutFpsylliq($n->getStringValue()), - 'nutFsteariq' => fn(ParseNode $n) => $o->setNutFsteariq($n->getStringValue()), - 'nutFtricosiliq' => fn(ParseNode $n) => $o->setNutFtricosiliq($n->getStringValue()), - 'nutFtridecyliq' => fn(ParseNode $n) => $o->setNutFtridecyliq($n->getStringValue()), - 'nutFundecyliq' => fn(ParseNode $n) => $o->setNutFundecyliq($n->getStringValue()), - 'nutFvaleriq' => fn(ParseNode $n) => $o->setNutFvaleriq($n->getStringValue()), + + return [ + 'nutAgt' => fn (ParseNode $n) => $o->setNutAgt($n->getStringValue()), + 'nutChol' => fn (ParseNode $n) => $o->setNutChol($n->getStringValue()), + 'nutF11eico' => fn (ParseNode $n) => $o->setNutF11eico($n->getStringValue()), + 'nutF16d0' => fn (ParseNode $n) => $o->setNutF16d0($n->getStringValue()), + 'nutF18d' => fn (ParseNode $n) => $o->setNutF18d($n->getStringValue()), + 'nutF18d2cn6' => fn (ParseNode $n) => $o->setNutF18d2cn6($n->getStringValue()), + 'nutF18d3n3' => fn (ParseNode $n) => $o->setNutF18d3n3($n->getStringValue()), + 'nutF19d' => fn (ParseNode $n) => $o->setNutF19d($n->getStringValue()), + 'nutF20d4' => fn (ParseNode $n) => $o->setNutF20d4($n->getStringValue()), + 'nutF20d5n3' => fn (ParseNode $n) => $o->setNutF20d5n3($n->getStringValue()), + 'nutF22d6n3' => fn (ParseNode $n) => $o->setNutF22d6n3($n->getStringValue()), + 'nutFacetiq' => fn (ParseNode $n) => $o->setNutFacetiq($n->getStringValue()), + 'nutFamscis' => fn (ParseNode $n) => $o->setNutFamscis($n->getStringValue()), + 'nutFapucis' => fn (ParseNode $n) => $o->setNutFapucis($n->getStringValue()), + 'nutFapulc' => fn (ParseNode $n) => $o->setNutFapulc($n->getStringValue()), + 'nutFapun3' => fn (ParseNode $n) => $o->setNutFapun3($n->getStringValue()), + 'nutFapun6' => fn (ParseNode $n) => $o->setNutFapun6($n->getStringValue()), + 'nutFapun9' => fn (ParseNode $n) => $o->setNutFapun9($n->getStringValue()), + 'nutFarachidiq' => fn (ParseNode $n) => $o->setNutFarachidiq($n->getStringValue()), + 'nutFbeheniq' => fn (ParseNode $n) => $o->setNutFbeheniq($n->getStringValue()), + 'nutFbutyriq' => fn (ParseNode $n) => $o->setNutFbutyriq($n->getStringValue()), + 'nutFcapriq' => fn (ParseNode $n) => $o->setNutFcapriq($n->getStringValue()), + 'nutFcaproiq' => fn (ParseNode $n) => $o->setNutFcaproiq($n->getStringValue()), + 'nutFcapryliq' => fn (ParseNode $n) => $o->setNutFcapryliq($n->getStringValue()), + 'nutFcarboceriq' => fn (ParseNode $n) => $o->setNutFcarboceriq($n->getStringValue()), + 'nutFceroplastiq' => fn (ParseNode $n) => $o->setNutFceroplastiq($n->getStringValue()), + 'nutFcerotiq' => fn (ParseNode $n) => $o->setNutFcerotiq($n->getStringValue()), + 'nutFd' => fn (ParseNode $n) => $o->setNutFd($n->getStringValue()), + 'nutFenatiq' => fn (ParseNode $n) => $o->setNutFenatiq($n->getStringValue()), + 'nutFeruciq' => fn (ParseNode $n) => $o->setNutFeruciq($n->getStringValue()), + 'nutFformiq' => fn (ParseNode $n) => $o->setNutFformiq($n->getStringValue()), + 'nutFgeddiq' => fn (ParseNode $n) => $o->setNutFgeddiq($n->getStringValue()), + 'nutFheneicosyliq' => fn (ParseNode $n) => $o->setNutFheneicosyliq($n->getStringValue()), + 'nutFhentriacontyliq' => fn (ParseNode $n) => $o->setNutFhentriacontyliq($n->getStringValue()), + 'nutFheptatriacontyliq' => fn (ParseNode $n) => $o->setNutFheptatriacontyliq($n->getStringValue()), + 'nutFhextriacontyliq' => fn (ParseNode $n) => $o->setNutFhextriacontyliq($n->getStringValue()), + 'nutFhyeniq' => fn (ParseNode $n) => $o->setNutFhyeniq($n->getStringValue()), + 'nutFlaceroiq' => fn (ParseNode $n) => $o->setNutFlaceroiq($n->getStringValue()), + 'nutFlauriq' => fn (ParseNode $n) => $o->setNutFlauriq($n->getStringValue()), + 'nutFlignoceriq' => fn (ParseNode $n) => $o->setNutFlignoceriq($n->getStringValue()), + 'nutFmargariq' => fn (ParseNode $n) => $o->setNutFmargariq($n->getStringValue()), + 'nutFmelissiq' => fn (ParseNode $n) => $o->setNutFmelissiq($n->getStringValue()), + 'nutFmontaniq' => fn (ParseNode $n) => $o->setNutFmontaniq($n->getStringValue()), + 'nutFmyristiq' => fn (ParseNode $n) => $o->setNutFmyristiq($n->getStringValue()), + 'nutFnervoniq' => fn (ParseNode $n) => $o->setNutFnervoniq($n->getStringValue()), + 'nutFnonacosyliq' => fn (ParseNode $n) => $o->setNutFnonacosyliq($n->getStringValue()), + 'nutFnonadylique' => fn (ParseNode $n) => $o->setNutFnonadylique($n->getStringValue()), + 'nutFoctatriacontyliq' => fn (ParseNode $n) => $o->setNutFoctatriacontyliq($n->getStringValue()), + 'nutFoleiq' => fn (ParseNode $n) => $o->setNutFoleiq($n->getStringValue()), + 'nutFpalm' => fn (ParseNode $n) => $o->setNutFpalm($n->getStringValue()), + 'nutFpelargoniq' => fn (ParseNode $n) => $o->setNutFpelargoniq($n->getStringValue()), + 'nutFpentadecyliq' => fn (ParseNode $n) => $o->setNutFpentadecyliq($n->getStringValue()), + 'nutFpropioniq' => fn (ParseNode $n) => $o->setNutFpropioniq($n->getStringValue()), + 'nutFpsylliq' => fn (ParseNode $n) => $o->setNutFpsylliq($n->getStringValue()), + 'nutFsteariq' => fn (ParseNode $n) => $o->setNutFsteariq($n->getStringValue()), + 'nutFtricosiliq' => fn (ParseNode $n) => $o->setNutFtricosiliq($n->getStringValue()), + 'nutFtridecyliq' => fn (ParseNode $n) => $o->setNutFtridecyliq($n->getStringValue()), + 'nutFundecyliq' => fn (ParseNode $n) => $o->setNutFundecyliq($n->getStringValue()), + 'nutFvaleriq' => fn (ParseNode $n) => $o->setNutFvaleriq($n->getStringValue()), ]; } /** * Gets the nutAgt property value. Acides gras trans (g/100g). - * @return string|null - */ - public function getNutAgt(): ?string { + */ + public function getNutAgt(): ?string + { return $this->nutAgt; } /** * Gets the nutChol property value. Cholestérol (mg/100g). - * @return string|null - */ - public function getNutChol(): ?string { + */ + public function getNutChol(): ?string + { return $this->nutChol; } /** * Gets the nutF11eico property value. Acide gondoïque (C20:1). - * @return string|null - */ - public function getNutF11eico(): ?string { + */ + public function getNutF11eico(): ?string + { return $this->nutF11eico; } /** * Gets the nutF16d0 property value. Acide palmitique (C16:0). - * @return string|null - */ - public function getNutF16d0(): ?string { + */ + public function getNutF16d0(): ?string + { return $this->nutF16d0; } /** * Gets the nutF18d property value. C18 insaturé (générique). - * @return string|null - */ - public function getNutF18d(): ?string { + */ + public function getNutF18d(): ?string + { return $this->nutF18d; } /** * Gets the nutF18d2cn6 property value. Acide linoléique (C18:2 ω-6). - * @return string|null - */ - public function getNutF18d2cn6(): ?string { + */ + public function getNutF18d2cn6(): ?string + { return $this->nutF18d2cn6; } /** * Gets the nutF18d3n3 property value. Acide α-linolénique (C18:3 ω-3). - * @return string|null - */ - public function getNutF18d3n3(): ?string { + */ + public function getNutF18d3n3(): ?string + { return $this->nutF18d3n3; } /** * Gets the nutF19d property value. C19 insaturé. - * @return string|null - */ - public function getNutF19d(): ?string { + */ + public function getNutF19d(): ?string + { return $this->nutF19d; } /** * Gets the nutF20d4 property value. Acide arachidonique (C20:4). - * @return string|null - */ - public function getNutF20d4(): ?string { + */ + public function getNutF20d4(): ?string + { return $this->nutF20d4; } /** * Gets the nutF20d5n3 property value. EPA (C20:5 ω-3). - * @return string|null - */ - public function getNutF20d5n3(): ?string { + */ + public function getNutF20d5n3(): ?string + { return $this->nutF20d5n3; } /** * Gets the nutF22d6n3 property value. DHA (C22:6 ω-3). - * @return string|null - */ - public function getNutF22d6n3(): ?string { + */ + public function getNutF22d6n3(): ?string + { return $this->nutF22d6n3; } /** * Gets the nutFacetiq property value. Acide acétique (C2:0). - * @return string|null - */ - public function getNutFacetiq(): ?string { + */ + public function getNutFacetiq(): ?string + { return $this->nutFacetiq; } /** * Gets the nutFamscis property value. AG monoinsaturés cis (total). - * @return string|null - */ - public function getNutFamscis(): ?string { + */ + public function getNutFamscis(): ?string + { return $this->nutFamscis; } /** * Gets the nutFapucis property value. AGPI cis (total). - * @return string|null - */ - public function getNutFapucis(): ?string { + */ + public function getNutFapucis(): ?string + { return $this->nutFapucis; } /** * Gets the nutFapulc property value. AGPI longue chaîne (total). - * @return string|null - */ - public function getNutFapulc(): ?string { + */ + public function getNutFapulc(): ?string + { return $this->nutFapulc; } /** * Gets the nutFapun3 property value. AGPI ω-3 (total). - * @return string|null - */ - public function getNutFapun3(): ?string { + */ + public function getNutFapun3(): ?string + { return $this->nutFapun3; } /** * Gets the nutFapun6 property value. AGPI ω-6 (total). - * @return string|null - */ - public function getNutFapun6(): ?string { + */ + public function getNutFapun6(): ?string + { return $this->nutFapun6; } /** * Gets the nutFapun9 property value. AGPI ω-9 (total). - * @return string|null - */ - public function getNutFapun9(): ?string { + */ + public function getNutFapun9(): ?string + { return $this->nutFapun9; } /** * Gets the nutFarachidiq property value. Acide arachidique (C20:0). - * @return string|null - */ - public function getNutFarachidiq(): ?string { + */ + public function getNutFarachidiq(): ?string + { return $this->nutFarachidiq; } /** * Gets the nutFbeheniq property value. Acide béhénique (C22:0). - * @return string|null - */ - public function getNutFbeheniq(): ?string { + */ + public function getNutFbeheniq(): ?string + { return $this->nutFbeheniq; } /** * Gets the nutFbutyriq property value. Acide butyrique (C4:0). - * @return string|null - */ - public function getNutFbutyriq(): ?string { + */ + public function getNutFbutyriq(): ?string + { return $this->nutFbutyriq; } /** * Gets the nutFcapriq property value. Acide caprique (C10:0). - * @return string|null - */ - public function getNutFcapriq(): ?string { + */ + public function getNutFcapriq(): ?string + { return $this->nutFcapriq; } /** * Gets the nutFcaproiq property value. Acide caproïque (C6:0). - * @return string|null - */ - public function getNutFcaproiq(): ?string { + */ + public function getNutFcaproiq(): ?string + { return $this->nutFcaproiq; } /** * Gets the nutFcapryliq property value. Acide caprylique (C8:0). - * @return string|null - */ - public function getNutFcapryliq(): ?string { + */ + public function getNutFcapryliq(): ?string + { return $this->nutFcapryliq; } /** * Gets the nutFcarboceriq property value. Acide carbocérique (C26:0). - * @return string|null - */ - public function getNutFcarboceriq(): ?string { + */ + public function getNutFcarboceriq(): ?string + { return $this->nutFcarboceriq; } /** * Gets the nutFceroplastiq property value. Acide céroplastique. - * @return string|null - */ - public function getNutFceroplastiq(): ?string { + */ + public function getNutFceroplastiq(): ?string + { return $this->nutFceroplastiq; } /** * Gets the nutFcerotiq property value. Acide cérotique (C26:0 alt.). - * @return string|null - */ - public function getNutFcerotiq(): ?string { + */ + public function getNutFcerotiq(): ?string + { return $this->nutFcerotiq; } /** * Gets the nutFd property value. Lipides totaux (g/100g). - * @return string|null - */ - public function getNutFd(): ?string { + */ + public function getNutFd(): ?string + { return $this->nutFd; } /** * Gets the nutFenatiq property value. Acide énanthique (C7:0). - * @return string|null - */ - public function getNutFenatiq(): ?string { + */ + public function getNutFenatiq(): ?string + { return $this->nutFenatiq; } /** * Gets the nutFeruciq property value. Acide érucique (C22:1). - * @return string|null - */ - public function getNutFeruciq(): ?string { + */ + public function getNutFeruciq(): ?string + { return $this->nutFeruciq; } /** * Gets the nutFformiq property value. Acide formique (C1:0). - * @return string|null - */ - public function getNutFformiq(): ?string { + */ + public function getNutFformiq(): ?string + { return $this->nutFformiq; } /** * Gets the nutFgeddiq property value. Acide geddique (C20:1 alt.). - * @return string|null - */ - public function getNutFgeddiq(): ?string { + */ + public function getNutFgeddiq(): ?string + { return $this->nutFgeddiq; } /** * Gets the nutFheneicosyliq property value. Acide héneicosylique (C21:0). - * @return string|null - */ - public function getNutFheneicosyliq(): ?string { + */ + public function getNutFheneicosyliq(): ?string + { return $this->nutFheneicosyliq; } /** * Gets the nutFhentriacontyliq property value. Acide hentriacontylique (C31:0). - * @return string|null - */ - public function getNutFhentriacontyliq(): ?string { + */ + public function getNutFhentriacontyliq(): ?string + { return $this->nutFhentriacontyliq; } /** * Gets the nutFheptatriacontyliq property value. Acide heptatriacontylique (C37:0). - * @return string|null - */ - public function getNutFheptatriacontyliq(): ?string { + */ + public function getNutFheptatriacontyliq(): ?string + { return $this->nutFheptatriacontyliq; } /** * Gets the nutFhextriacontyliq property value. Acide hexatriacontylique (C36:0). - * @return string|null - */ - public function getNutFhextriacontyliq(): ?string { + */ + public function getNutFhextriacontyliq(): ?string + { return $this->nutFhextriacontyliq; } /** * Gets the nutFhyeniq property value. Acide hyénique. - * @return string|null - */ - public function getNutFhyeniq(): ?string { + */ + public function getNutFhyeniq(): ?string + { return $this->nutFhyeniq; } /** * Gets the nutFlaceroiq property value. Acide lacéroïque (C32:0). - * @return string|null - */ - public function getNutFlaceroiq(): ?string { + */ + public function getNutFlaceroiq(): ?string + { return $this->nutFlaceroiq; } /** * Gets the nutFlauriq property value. Acide laurique (C12:0). - * @return string|null - */ - public function getNutFlauriq(): ?string { + */ + public function getNutFlauriq(): ?string + { return $this->nutFlauriq; } /** * Gets the nutFlignoceriq property value. Acide lignocérique (C24:0). - * @return string|null - */ - public function getNutFlignoceriq(): ?string { + */ + public function getNutFlignoceriq(): ?string + { return $this->nutFlignoceriq; } /** * Gets the nutFmargariq property value. Acide margarique (C17:0). - * @return string|null - */ - public function getNutFmargariq(): ?string { + */ + public function getNutFmargariq(): ?string + { return $this->nutFmargariq; } /** * Gets the nutFmelissiq property value. Acide mélissique (C30:0). - * @return string|null - */ - public function getNutFmelissiq(): ?string { + */ + public function getNutFmelissiq(): ?string + { return $this->nutFmelissiq; } /** * Gets the nutFmontaniq property value. Acide montanique (C28:0). - * @return string|null - */ - public function getNutFmontaniq(): ?string { + */ + public function getNutFmontaniq(): ?string + { return $this->nutFmontaniq; } /** * Gets the nutFmyristiq property value. Acide myristique (C14:0). - * @return string|null - */ - public function getNutFmyristiq(): ?string { + */ + public function getNutFmyristiq(): ?string + { return $this->nutFmyristiq; } /** * Gets the nutFnervoniq property value. Acide nervonique (C24:1). - * @return string|null - */ - public function getNutFnervoniq(): ?string { + */ + public function getNutFnervoniq(): ?string + { return $this->nutFnervoniq; } /** * Gets the nutFnonacosyliq property value. Acide nonacosylique (C29:0). - * @return string|null - */ - public function getNutFnonacosyliq(): ?string { + */ + public function getNutFnonacosyliq(): ?string + { return $this->nutFnonacosyliq; } /** * Gets the nutFnonadylique property value. Acide nonadylique. - * @return string|null - */ - public function getNutFnonadylique(): ?string { + */ + public function getNutFnonadylique(): ?string + { return $this->nutFnonadylique; } /** * Gets the nutFoctatriacontyliq property value. Acide octariacontylique (C38:0). - * @return string|null - */ - public function getNutFoctatriacontyliq(): ?string { + */ + public function getNutFoctatriacontyliq(): ?string + { return $this->nutFoctatriacontyliq; } /** * Gets the nutFoleiq property value. Acide oléique (C18:1 ω-9). - * @return string|null - */ - public function getNutFoleiq(): ?string { + */ + public function getNutFoleiq(): ?string + { return $this->nutFoleiq; } /** * Gets the nutFpalm property value. Acide palmitoléique (C16:1). - * @return string|null - */ - public function getNutFpalm(): ?string { + */ + public function getNutFpalm(): ?string + { return $this->nutFpalm; } /** * Gets the nutFpelargoniq property value. Acide pélargonique (C9:0). - * @return string|null - */ - public function getNutFpelargoniq(): ?string { + */ + public function getNutFpelargoniq(): ?string + { return $this->nutFpelargoniq; } /** * Gets the nutFpentadecyliq property value. Acide pentadécylique (C15:0). - * @return string|null - */ - public function getNutFpentadecyliq(): ?string { + */ + public function getNutFpentadecyliq(): ?string + { return $this->nutFpentadecyliq; } /** * Gets the nutFpropioniq property value. Acide propionique (C3:0). - * @return string|null - */ - public function getNutFpropioniq(): ?string { + */ + public function getNutFpropioniq(): ?string + { return $this->nutFpropioniq; } /** * Gets the nutFpsylliq property value. Acide psyllique. - * @return string|null - */ - public function getNutFpsylliq(): ?string { + */ + public function getNutFpsylliq(): ?string + { return $this->nutFpsylliq; } /** * Gets the nutFsteariq property value. Acide stéarique (C18:0). - * @return string|null - */ - public function getNutFsteariq(): ?string { + */ + public function getNutFsteariq(): ?string + { return $this->nutFsteariq; } /** * Gets the nutFtricosiliq property value. Acide tétracosanoïque (C23:0). - * @return string|null - */ - public function getNutFtricosiliq(): ?string { + */ + public function getNutFtricosiliq(): ?string + { return $this->nutFtricosiliq; } /** * Gets the nutFtridecyliq property value. Acide tridécylique (C13:0). - * @return string|null - */ - public function getNutFtridecyliq(): ?string { + */ + public function getNutFtridecyliq(): ?string + { return $this->nutFtridecyliq; } /** * Gets the nutFundecyliq property value. Acide undécylique (C11:0). - * @return string|null - */ - public function getNutFundecyliq(): ?string { + */ + public function getNutFundecyliq(): ?string + { return $this->nutFundecyliq; } /** * Gets the nutFvaleriq property value. Acide valérique (C5:0). - * @return string|null - */ - public function getNutFvaleriq(): ?string { + */ + public function getNutFvaleriq(): ?string + { return $this->nutFvaleriq; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeStringValue('nutAgt', $this->getNutAgt()); $writer->writeStringValue('nutChol', $this->getNutChol()); $writer->writeStringValue('nutF11eico', $this->getNutF11eico()); @@ -946,482 +957,601 @@ class IncoCompoFattyAcids implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the nutAgt property value. Acides gras trans (g/100g). - * @param string|null $value Value to set for the nutAgt property. - */ - public function setNutAgt(?string $value): void { + * + * @param string|null $value Value to set for the nutAgt property. + */ + public function setNutAgt(?string $value): void + { $this->nutAgt = $value; } /** * Sets the nutChol property value. Cholestérol (mg/100g). - * @param string|null $value Value to set for the nutChol property. - */ - public function setNutChol(?string $value): void { + * + * @param string|null $value Value to set for the nutChol property. + */ + public function setNutChol(?string $value): void + { $this->nutChol = $value; } /** * Sets the nutF11eico property value. Acide gondoïque (C20:1). - * @param string|null $value Value to set for the nutF11eico property. - */ - public function setNutF11eico(?string $value): void { + * + * @param string|null $value Value to set for the nutF11eico property. + */ + public function setNutF11eico(?string $value): void + { $this->nutF11eico = $value; } /** * Sets the nutF16d0 property value. Acide palmitique (C16:0). - * @param string|null $value Value to set for the nutF16d0 property. - */ - public function setNutF16d0(?string $value): void { + * + * @param string|null $value Value to set for the nutF16d0 property. + */ + public function setNutF16d0(?string $value): void + { $this->nutF16d0 = $value; } /** * Sets the nutF18d property value. C18 insaturé (générique). - * @param string|null $value Value to set for the nutF18d property. - */ - public function setNutF18d(?string $value): void { + * + * @param string|null $value Value to set for the nutF18d property. + */ + public function setNutF18d(?string $value): void + { $this->nutF18d = $value; } /** * Sets the nutF18d2cn6 property value. Acide linoléique (C18:2 ω-6). - * @param string|null $value Value to set for the nutF18d2cn6 property. - */ - public function setNutF18d2cn6(?string $value): void { + * + * @param string|null $value Value to set for the nutF18d2cn6 property. + */ + public function setNutF18d2cn6(?string $value): void + { $this->nutF18d2cn6 = $value; } /** * Sets the nutF18d3n3 property value. Acide α-linolénique (C18:3 ω-3). - * @param string|null $value Value to set for the nutF18d3n3 property. - */ - public function setNutF18d3n3(?string $value): void { + * + * @param string|null $value Value to set for the nutF18d3n3 property. + */ + public function setNutF18d3n3(?string $value): void + { $this->nutF18d3n3 = $value; } /** * Sets the nutF19d property value. C19 insaturé. - * @param string|null $value Value to set for the nutF19d property. - */ - public function setNutF19d(?string $value): void { + * + * @param string|null $value Value to set for the nutF19d property. + */ + public function setNutF19d(?string $value): void + { $this->nutF19d = $value; } /** * Sets the nutF20d4 property value. Acide arachidonique (C20:4). - * @param string|null $value Value to set for the nutF20d4 property. - */ - public function setNutF20d4(?string $value): void { + * + * @param string|null $value Value to set for the nutF20d4 property. + */ + public function setNutF20d4(?string $value): void + { $this->nutF20d4 = $value; } /** * Sets the nutF20d5n3 property value. EPA (C20:5 ω-3). - * @param string|null $value Value to set for the nutF20d5n3 property. - */ - public function setNutF20d5n3(?string $value): void { + * + * @param string|null $value Value to set for the nutF20d5n3 property. + */ + public function setNutF20d5n3(?string $value): void + { $this->nutF20d5n3 = $value; } /** * Sets the nutF22d6n3 property value. DHA (C22:6 ω-3). - * @param string|null $value Value to set for the nutF22d6n3 property. - */ - public function setNutF22d6n3(?string $value): void { + * + * @param string|null $value Value to set for the nutF22d6n3 property. + */ + public function setNutF22d6n3(?string $value): void + { $this->nutF22d6n3 = $value; } /** * Sets the nutFacetiq property value. Acide acétique (C2:0). - * @param string|null $value Value to set for the nutFacetiq property. - */ - public function setNutFacetiq(?string $value): void { + * + * @param string|null $value Value to set for the nutFacetiq property. + */ + public function setNutFacetiq(?string $value): void + { $this->nutFacetiq = $value; } /** * Sets the nutFamscis property value. AG monoinsaturés cis (total). - * @param string|null $value Value to set for the nutFamscis property. - */ - public function setNutFamscis(?string $value): void { + * + * @param string|null $value Value to set for the nutFamscis property. + */ + public function setNutFamscis(?string $value): void + { $this->nutFamscis = $value; } /** * Sets the nutFapucis property value. AGPI cis (total). - * @param string|null $value Value to set for the nutFapucis property. - */ - public function setNutFapucis(?string $value): void { + * + * @param string|null $value Value to set for the nutFapucis property. + */ + public function setNutFapucis(?string $value): void + { $this->nutFapucis = $value; } /** * Sets the nutFapulc property value. AGPI longue chaîne (total). - * @param string|null $value Value to set for the nutFapulc property. - */ - public function setNutFapulc(?string $value): void { + * + * @param string|null $value Value to set for the nutFapulc property. + */ + public function setNutFapulc(?string $value): void + { $this->nutFapulc = $value; } /** * Sets the nutFapun3 property value. AGPI ω-3 (total). - * @param string|null $value Value to set for the nutFapun3 property. - */ - public function setNutFapun3(?string $value): void { + * + * @param string|null $value Value to set for the nutFapun3 property. + */ + public function setNutFapun3(?string $value): void + { $this->nutFapun3 = $value; } /** * Sets the nutFapun6 property value. AGPI ω-6 (total). - * @param string|null $value Value to set for the nutFapun6 property. - */ - public function setNutFapun6(?string $value): void { + * + * @param string|null $value Value to set for the nutFapun6 property. + */ + public function setNutFapun6(?string $value): void + { $this->nutFapun6 = $value; } /** * Sets the nutFapun9 property value. AGPI ω-9 (total). - * @param string|null $value Value to set for the nutFapun9 property. - */ - public function setNutFapun9(?string $value): void { + * + * @param string|null $value Value to set for the nutFapun9 property. + */ + public function setNutFapun9(?string $value): void + { $this->nutFapun9 = $value; } /** * Sets the nutFarachidiq property value. Acide arachidique (C20:0). - * @param string|null $value Value to set for the nutFarachidiq property. - */ - public function setNutFarachidiq(?string $value): void { + * + * @param string|null $value Value to set for the nutFarachidiq property. + */ + public function setNutFarachidiq(?string $value): void + { $this->nutFarachidiq = $value; } /** * Sets the nutFbeheniq property value. Acide béhénique (C22:0). - * @param string|null $value Value to set for the nutFbeheniq property. - */ - public function setNutFbeheniq(?string $value): void { + * + * @param string|null $value Value to set for the nutFbeheniq property. + */ + public function setNutFbeheniq(?string $value): void + { $this->nutFbeheniq = $value; } /** * Sets the nutFbutyriq property value. Acide butyrique (C4:0). - * @param string|null $value Value to set for the nutFbutyriq property. - */ - public function setNutFbutyriq(?string $value): void { + * + * @param string|null $value Value to set for the nutFbutyriq property. + */ + public function setNutFbutyriq(?string $value): void + { $this->nutFbutyriq = $value; } /** * Sets the nutFcapriq property value. Acide caprique (C10:0). - * @param string|null $value Value to set for the nutFcapriq property. - */ - public function setNutFcapriq(?string $value): void { + * + * @param string|null $value Value to set for the nutFcapriq property. + */ + public function setNutFcapriq(?string $value): void + { $this->nutFcapriq = $value; } /** * Sets the nutFcaproiq property value. Acide caproïque (C6:0). - * @param string|null $value Value to set for the nutFcaproiq property. - */ - public function setNutFcaproiq(?string $value): void { + * + * @param string|null $value Value to set for the nutFcaproiq property. + */ + public function setNutFcaproiq(?string $value): void + { $this->nutFcaproiq = $value; } /** * Sets the nutFcapryliq property value. Acide caprylique (C8:0). - * @param string|null $value Value to set for the nutFcapryliq property. - */ - public function setNutFcapryliq(?string $value): void { + * + * @param string|null $value Value to set for the nutFcapryliq property. + */ + public function setNutFcapryliq(?string $value): void + { $this->nutFcapryliq = $value; } /** * Sets the nutFcarboceriq property value. Acide carbocérique (C26:0). - * @param string|null $value Value to set for the nutFcarboceriq property. - */ - public function setNutFcarboceriq(?string $value): void { + * + * @param string|null $value Value to set for the nutFcarboceriq property. + */ + public function setNutFcarboceriq(?string $value): void + { $this->nutFcarboceriq = $value; } /** * Sets the nutFceroplastiq property value. Acide céroplastique. - * @param string|null $value Value to set for the nutFceroplastiq property. - */ - public function setNutFceroplastiq(?string $value): void { + * + * @param string|null $value Value to set for the nutFceroplastiq property. + */ + public function setNutFceroplastiq(?string $value): void + { $this->nutFceroplastiq = $value; } /** * Sets the nutFcerotiq property value. Acide cérotique (C26:0 alt.). - * @param string|null $value Value to set for the nutFcerotiq property. - */ - public function setNutFcerotiq(?string $value): void { + * + * @param string|null $value Value to set for the nutFcerotiq property. + */ + public function setNutFcerotiq(?string $value): void + { $this->nutFcerotiq = $value; } /** * Sets the nutFd property value. Lipides totaux (g/100g). - * @param string|null $value Value to set for the nutFd property. - */ - public function setNutFd(?string $value): void { + * + * @param string|null $value Value to set for the nutFd property. + */ + public function setNutFd(?string $value): void + { $this->nutFd = $value; } /** * Sets the nutFenatiq property value. Acide énanthique (C7:0). - * @param string|null $value Value to set for the nutFenatiq property. - */ - public function setNutFenatiq(?string $value): void { + * + * @param string|null $value Value to set for the nutFenatiq property. + */ + public function setNutFenatiq(?string $value): void + { $this->nutFenatiq = $value; } /** * Sets the nutFeruciq property value. Acide érucique (C22:1). - * @param string|null $value Value to set for the nutFeruciq property. - */ - public function setNutFeruciq(?string $value): void { + * + * @param string|null $value Value to set for the nutFeruciq property. + */ + public function setNutFeruciq(?string $value): void + { $this->nutFeruciq = $value; } /** * Sets the nutFformiq property value. Acide formique (C1:0). - * @param string|null $value Value to set for the nutFformiq property. - */ - public function setNutFformiq(?string $value): void { + * + * @param string|null $value Value to set for the nutFformiq property. + */ + public function setNutFformiq(?string $value): void + { $this->nutFformiq = $value; } /** * Sets the nutFgeddiq property value. Acide geddique (C20:1 alt.). - * @param string|null $value Value to set for the nutFgeddiq property. - */ - public function setNutFgeddiq(?string $value): void { + * + * @param string|null $value Value to set for the nutFgeddiq property. + */ + public function setNutFgeddiq(?string $value): void + { $this->nutFgeddiq = $value; } /** * Sets the nutFheneicosyliq property value. Acide héneicosylique (C21:0). - * @param string|null $value Value to set for the nutFheneicosyliq property. - */ - public function setNutFheneicosyliq(?string $value): void { + * + * @param string|null $value Value to set for the nutFheneicosyliq property. + */ + public function setNutFheneicosyliq(?string $value): void + { $this->nutFheneicosyliq = $value; } /** * Sets the nutFhentriacontyliq property value. Acide hentriacontylique (C31:0). - * @param string|null $value Value to set for the nutFhentriacontyliq property. - */ - public function setNutFhentriacontyliq(?string $value): void { + * + * @param string|null $value Value to set for the nutFhentriacontyliq property. + */ + public function setNutFhentriacontyliq(?string $value): void + { $this->nutFhentriacontyliq = $value; } /** * Sets the nutFheptatriacontyliq property value. Acide heptatriacontylique (C37:0). - * @param string|null $value Value to set for the nutFheptatriacontyliq property. - */ - public function setNutFheptatriacontyliq(?string $value): void { + * + * @param string|null $value Value to set for the nutFheptatriacontyliq property. + */ + public function setNutFheptatriacontyliq(?string $value): void + { $this->nutFheptatriacontyliq = $value; } /** * Sets the nutFhextriacontyliq property value. Acide hexatriacontylique (C36:0). - * @param string|null $value Value to set for the nutFhextriacontyliq property. - */ - public function setNutFhextriacontyliq(?string $value): void { + * + * @param string|null $value Value to set for the nutFhextriacontyliq property. + */ + public function setNutFhextriacontyliq(?string $value): void + { $this->nutFhextriacontyliq = $value; } /** * Sets the nutFhyeniq property value. Acide hyénique. - * @param string|null $value Value to set for the nutFhyeniq property. - */ - public function setNutFhyeniq(?string $value): void { + * + * @param string|null $value Value to set for the nutFhyeniq property. + */ + public function setNutFhyeniq(?string $value): void + { $this->nutFhyeniq = $value; } /** * Sets the nutFlaceroiq property value. Acide lacéroïque (C32:0). - * @param string|null $value Value to set for the nutFlaceroiq property. - */ - public function setNutFlaceroiq(?string $value): void { + * + * @param string|null $value Value to set for the nutFlaceroiq property. + */ + public function setNutFlaceroiq(?string $value): void + { $this->nutFlaceroiq = $value; } /** * Sets the nutFlauriq property value. Acide laurique (C12:0). - * @param string|null $value Value to set for the nutFlauriq property. - */ - public function setNutFlauriq(?string $value): void { + * + * @param string|null $value Value to set for the nutFlauriq property. + */ + public function setNutFlauriq(?string $value): void + { $this->nutFlauriq = $value; } /** * Sets the nutFlignoceriq property value. Acide lignocérique (C24:0). - * @param string|null $value Value to set for the nutFlignoceriq property. - */ - public function setNutFlignoceriq(?string $value): void { + * + * @param string|null $value Value to set for the nutFlignoceriq property. + */ + public function setNutFlignoceriq(?string $value): void + { $this->nutFlignoceriq = $value; } /** * Sets the nutFmargariq property value. Acide margarique (C17:0). - * @param string|null $value Value to set for the nutFmargariq property. - */ - public function setNutFmargariq(?string $value): void { + * + * @param string|null $value Value to set for the nutFmargariq property. + */ + public function setNutFmargariq(?string $value): void + { $this->nutFmargariq = $value; } /** * Sets the nutFmelissiq property value. Acide mélissique (C30:0). - * @param string|null $value Value to set for the nutFmelissiq property. - */ - public function setNutFmelissiq(?string $value): void { + * + * @param string|null $value Value to set for the nutFmelissiq property. + */ + public function setNutFmelissiq(?string $value): void + { $this->nutFmelissiq = $value; } /** * Sets the nutFmontaniq property value. Acide montanique (C28:0). - * @param string|null $value Value to set for the nutFmontaniq property. - */ - public function setNutFmontaniq(?string $value): void { + * + * @param string|null $value Value to set for the nutFmontaniq property. + */ + public function setNutFmontaniq(?string $value): void + { $this->nutFmontaniq = $value; } /** * Sets the nutFmyristiq property value. Acide myristique (C14:0). - * @param string|null $value Value to set for the nutFmyristiq property. - */ - public function setNutFmyristiq(?string $value): void { + * + * @param string|null $value Value to set for the nutFmyristiq property. + */ + public function setNutFmyristiq(?string $value): void + { $this->nutFmyristiq = $value; } /** * Sets the nutFnervoniq property value. Acide nervonique (C24:1). - * @param string|null $value Value to set for the nutFnervoniq property. - */ - public function setNutFnervoniq(?string $value): void { + * + * @param string|null $value Value to set for the nutFnervoniq property. + */ + public function setNutFnervoniq(?string $value): void + { $this->nutFnervoniq = $value; } /** * Sets the nutFnonacosyliq property value. Acide nonacosylique (C29:0). - * @param string|null $value Value to set for the nutFnonacosyliq property. - */ - public function setNutFnonacosyliq(?string $value): void { + * + * @param string|null $value Value to set for the nutFnonacosyliq property. + */ + public function setNutFnonacosyliq(?string $value): void + { $this->nutFnonacosyliq = $value; } /** * Sets the nutFnonadylique property value. Acide nonadylique. - * @param string|null $value Value to set for the nutFnonadylique property. - */ - public function setNutFnonadylique(?string $value): void { + * + * @param string|null $value Value to set for the nutFnonadylique property. + */ + public function setNutFnonadylique(?string $value): void + { $this->nutFnonadylique = $value; } /** * Sets the nutFoctatriacontyliq property value. Acide octariacontylique (C38:0). - * @param string|null $value Value to set for the nutFoctatriacontyliq property. - */ - public function setNutFoctatriacontyliq(?string $value): void { + * + * @param string|null $value Value to set for the nutFoctatriacontyliq property. + */ + public function setNutFoctatriacontyliq(?string $value): void + { $this->nutFoctatriacontyliq = $value; } /** * Sets the nutFoleiq property value. Acide oléique (C18:1 ω-9). - * @param string|null $value Value to set for the nutFoleiq property. - */ - public function setNutFoleiq(?string $value): void { + * + * @param string|null $value Value to set for the nutFoleiq property. + */ + public function setNutFoleiq(?string $value): void + { $this->nutFoleiq = $value; } /** * Sets the nutFpalm property value. Acide palmitoléique (C16:1). - * @param string|null $value Value to set for the nutFpalm property. - */ - public function setNutFpalm(?string $value): void { + * + * @param string|null $value Value to set for the nutFpalm property. + */ + public function setNutFpalm(?string $value): void + { $this->nutFpalm = $value; } /** * Sets the nutFpelargoniq property value. Acide pélargonique (C9:0). - * @param string|null $value Value to set for the nutFpelargoniq property. - */ - public function setNutFpelargoniq(?string $value): void { + * + * @param string|null $value Value to set for the nutFpelargoniq property. + */ + public function setNutFpelargoniq(?string $value): void + { $this->nutFpelargoniq = $value; } /** * Sets the nutFpentadecyliq property value. Acide pentadécylique (C15:0). - * @param string|null $value Value to set for the nutFpentadecyliq property. - */ - public function setNutFpentadecyliq(?string $value): void { + * + * @param string|null $value Value to set for the nutFpentadecyliq property. + */ + public function setNutFpentadecyliq(?string $value): void + { $this->nutFpentadecyliq = $value; } /** * Sets the nutFpropioniq property value. Acide propionique (C3:0). - * @param string|null $value Value to set for the nutFpropioniq property. - */ - public function setNutFpropioniq(?string $value): void { + * + * @param string|null $value Value to set for the nutFpropioniq property. + */ + public function setNutFpropioniq(?string $value): void + { $this->nutFpropioniq = $value; } /** * Sets the nutFpsylliq property value. Acide psyllique. - * @param string|null $value Value to set for the nutFpsylliq property. - */ - public function setNutFpsylliq(?string $value): void { + * + * @param string|null $value Value to set for the nutFpsylliq property. + */ + public function setNutFpsylliq(?string $value): void + { $this->nutFpsylliq = $value; } /** * Sets the nutFsteariq property value. Acide stéarique (C18:0). - * @param string|null $value Value to set for the nutFsteariq property. - */ - public function setNutFsteariq(?string $value): void { + * + * @param string|null $value Value to set for the nutFsteariq property. + */ + public function setNutFsteariq(?string $value): void + { $this->nutFsteariq = $value; } /** * Sets the nutFtricosiliq property value. Acide tétracosanoïque (C23:0). - * @param string|null $value Value to set for the nutFtricosiliq property. - */ - public function setNutFtricosiliq(?string $value): void { + * + * @param string|null $value Value to set for the nutFtricosiliq property. + */ + public function setNutFtricosiliq(?string $value): void + { $this->nutFtricosiliq = $value; } /** * Sets the nutFtridecyliq property value. Acide tridécylique (C13:0). - * @param string|null $value Value to set for the nutFtridecyliq property. - */ - public function setNutFtridecyliq(?string $value): void { + * + * @param string|null $value Value to set for the nutFtridecyliq property. + */ + public function setNutFtridecyliq(?string $value): void + { $this->nutFtridecyliq = $value; } /** * Sets the nutFundecyliq property value. Acide undécylique (C11:0). - * @param string|null $value Value to set for the nutFundecyliq property. - */ - public function setNutFundecyliq(?string $value): void { + * + * @param string|null $value Value to set for the nutFundecyliq property. + */ + public function setNutFundecyliq(?string $value): void + { $this->nutFundecyliq = $value; } /** * Sets the nutFvaleriq property value. Acide valérique (C5:0). - * @param string|null $value Value to set for the nutFvaleriq property. - */ - public function setNutFvaleriq(?string $value): void { + * + * @param string|null $value Value to set for the nutFvaleriq property. + */ + public function setNutFvaleriq(?string $value): void + { $this->nutFvaleriq = $value; } - } diff --git a/client/Models/IncoCompoFreshProduceAndNuts.php b/client/Models/IncoCompoFreshProduceAndNuts.php old mode 100755 new mode 100644 index 144f295..b754aac --- a/client/Models/IncoCompoFreshProduceAndNuts.php +++ b/client/Models/IncoCompoFreshProduceAndNuts.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 PercentageValue|null $freshFnlPercentage Valeur sous forme de pourcentage (0-100%). - */ + * @var PercentageValue|null Valeur sous forme de pourcentage (0-100%). + */ private ?PercentageValue $freshFnlPercentage = null; - + /** - * @var PercentageValue|null $fruitsPercentage Valeur sous forme de pourcentage (0-100%). - */ + * @var PercentageValue|null Valeur sous forme de pourcentage (0-100%). + */ private ?PercentageValue $fruitsPercentage = null; - + /** - * @var FruitAndNutAmount|null $portion Quantités de fruits, noix et FNL. - */ + * @var FruitAndNutAmount|null Quantités de fruits, noix et FNL. + */ private ?FruitAndNutAmount $portion = null; - + /** - * @var FruitAndNutAmount|null $reference Quantités de fruits, noix et FNL. - */ + * @var FruitAndNutAmount|null Quantités de fruits, noix et FNL. + */ private ?FruitAndNutAmount $reference = null; - + /** * Instantiates a new IncoCompoFreshProduceAndNuts and sets the default values. - */ - public function __construct() { + */ + 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 IncoCompoFreshProduceAndNuts - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoFreshProduceAndNuts { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoFreshProduceAndNuts + { return new IncoCompoFreshProduceAndNuts(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'freshFnlPercentage' => fn(ParseNode $n) => $o->setFreshFnlPercentage($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])), - 'fruitsPercentage' => fn(ParseNode $n) => $o->setFruitsPercentage($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])), - 'portion' => fn(ParseNode $n) => $o->setPortion($n->getObjectValue([FruitAndNutAmount::class, 'createFromDiscriminatorValue'])), - 'reference' => fn(ParseNode $n) => $o->setReference($n->getObjectValue([FruitAndNutAmount::class, 'createFromDiscriminatorValue'])), + + return [ + 'freshFnlPercentage' => fn (ParseNode $n) => $o->setFreshFnlPercentage($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])), + 'fruitsPercentage' => fn (ParseNode $n) => $o->setFruitsPercentage($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])), + 'portion' => fn (ParseNode $n) => $o->setPortion($n->getObjectValue([FruitAndNutAmount::class, 'createFromDiscriminatorValue'])), + 'reference' => fn (ParseNode $n) => $o->setReference($n->getObjectValue([FruitAndNutAmount::class, 'createFromDiscriminatorValue'])), ]; } /** * Gets the freshFnlPercentage property value. Valeur sous forme de pourcentage (0-100%). - * @return PercentageValue|null - */ - public function getFreshFnlPercentage(): ?PercentageValue { + */ + public function getFreshFnlPercentage(): ?PercentageValue + { return $this->freshFnlPercentage; } /** * Gets the fruitsPercentage property value. Valeur sous forme de pourcentage (0-100%). - * @return PercentageValue|null - */ - public function getFruitsPercentage(): ?PercentageValue { + */ + public function getFruitsPercentage(): ?PercentageValue + { return $this->fruitsPercentage; } /** * Gets the portion property value. Quantités de fruits, noix et FNL. - * @return FruitAndNutAmount|null - */ - public function getPortion(): ?FruitAndNutAmount { + */ + public function getPortion(): ?FruitAndNutAmount + { return $this->portion; } /** * Gets the reference property value. Quantités de fruits, noix et FNL. - * @return FruitAndNutAmount|null - */ - public function getReference(): ?FruitAndNutAmount { + */ + public function getReference(): ?FruitAndNutAmount + { return $this->reference; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeObjectValue('freshFnlPercentage', $this->getFreshFnlPercentage()); $writer->writeObjectValue('fruitsPercentage', $this->getFruitsPercentage()); $writer->writeObjectValue('portion', $this->getPortion()); @@ -121,42 +132,51 @@ class IncoCompoFreshProduceAndNuts implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the freshFnlPercentage property value. Valeur sous forme de pourcentage (0-100%). - * @param PercentageValue|null $value Value to set for the freshFnlPercentage property. - */ - public function setFreshFnlPercentage(?PercentageValue $value): void { + * + * @param PercentageValue|null $value Value to set for the freshFnlPercentage property. + */ + public function setFreshFnlPercentage(?PercentageValue $value): void + { $this->freshFnlPercentage = $value; } /** * Sets the fruitsPercentage property value. Valeur sous forme de pourcentage (0-100%). - * @param PercentageValue|null $value Value to set for the fruitsPercentage property. - */ - public function setFruitsPercentage(?PercentageValue $value): void { + * + * @param PercentageValue|null $value Value to set for the fruitsPercentage property. + */ + public function setFruitsPercentage(?PercentageValue $value): void + { $this->fruitsPercentage = $value; } /** * Sets the portion property value. Quantités de fruits, noix et FNL. - * @param FruitAndNutAmount|null $value Value to set for the portion property. - */ - public function setPortion(?FruitAndNutAmount $value): void { + * + * @param FruitAndNutAmount|null $value Value to set for the portion property. + */ + public function setPortion(?FruitAndNutAmount $value): void + { $this->portion = $value; } /** * Sets the reference property value. Quantités de fruits, noix et FNL. - * @param FruitAndNutAmount|null $value Value to set for the reference property. - */ - public function setReference(?FruitAndNutAmount $value): void { + * + * @param FruitAndNutAmount|null $value Value to set for the reference property. + */ + public function setReference(?FruitAndNutAmount $value): void + { $this->reference = $value; } - } diff --git a/client/Models/IncoCompoItemResponse.php b/client/Models/IncoCompoItemResponse.php old mode 100755 new mode 100644 index f29fa78..7a2e845 --- a/client/Models/IncoCompoItemResponse.php +++ b/client/Models/IncoCompoItemResponse.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 IncoCompo|null $composition Composition nutritionnelle détaillée d'une fiche INCO. - */ + * @var IncoCompo|null Composition nutritionnelle détaillée d'une fiche INCO. + */ private ?IncoCompo $composition = null; - + /** * Instantiates a new IncoCompoItemResponse and sets the default values. - */ - public function __construct() { + */ + 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 IncoCompoItemResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoItemResponse { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoItemResponse + { return new IncoCompoItemResponse(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * Gets the composition property value. Composition nutritionnelle détaillée d'une fiche INCO. - * @return IncoCompo|null - */ - public function getComposition(): ?IncoCompo { + */ + public function getComposition(): ?IncoCompo + { return $this->composition; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'composition' => fn(ParseNode $n) => $o->setComposition($n->getObjectValue([IncoCompo::class, 'createFromDiscriminatorValue'])), + + return [ + 'composition' => fn (ParseNode $n) => $o->setComposition($n->getObjectValue([IncoCompo::class, 'createFromDiscriminatorValue'])), ]; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeObjectValue('composition', $this->getComposition()); $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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the composition property value. Composition nutritionnelle détaillée d'une fiche INCO. - * @param IncoCompo|null $value Value to set for the composition property. - */ - public function setComposition(?IncoCompo $value): void { + * + * @param IncoCompo|null $value Value to set for the composition property. + */ + public function setComposition(?IncoCompo $value): void + { $this->composition = $value; } - } diff --git a/client/Models/IncoCompoMinerals.php b/client/Models/IncoCompoMinerals.php old mode 100755 new mode 100644 index 7acb2d4..7596364 --- a/client/Models/IncoCompoMinerals.php +++ b/client/Models/IncoCompoMinerals.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 string|null $calcium The calcium property - */ + * @var string|null The calcium property + */ private ?string $calcium = null; - + /** - * @var string|null $chloride The chloride property - */ + * @var string|null The chloride property + */ private ?string $chloride = null; - + /** - * @var string|null $chromium The chromium property - */ + * @var string|null The chromium property + */ private ?string $chromium = null; - + /** - * @var string|null $copper The copper property - */ + * @var string|null The copper property + */ private ?string $copper = null; - + /** - * @var string|null $iodine The iodine property - */ + * @var string|null The iodine property + */ private ?string $iodine = null; - + /** - * @var string|null $iron The iron property - */ + * @var string|null The iron property + */ private ?string $iron = null; - + /** - * @var string|null $magnesium The magnesium property - */ + * @var string|null The magnesium property + */ private ?string $magnesium = null; - + /** - * @var string|null $manganese The manganese property - */ + * @var string|null The manganese property + */ private ?string $manganese = null; - + /** - * @var string|null $molybdenum The molybdenum property - */ + * @var string|null The molybdenum property + */ private ?string $molybdenum = null; - + /** - * @var string|null $nitrates The nitrates property - */ + * @var string|null The nitrates property + */ private ?string $nitrates = null; - + /** - * @var string|null $phosphorus The phosphorus property - */ + * @var string|null The phosphorus property + */ private ?string $phosphorus = null; - + /** - * @var string|null $potassium The potassium property - */ + * @var string|null The potassium property + */ private ?string $potassium = null; - + /** - * @var string|null $selenium The selenium property - */ + * @var string|null The selenium property + */ private ?string $selenium = null; - + /** - * @var string|null $sulfur The sulfur property - */ + * @var string|null The sulfur property + */ private ?string $sulfur = null; - + /** - * @var string|null $zinc The zinc property - */ + * @var string|null The zinc property + */ private ?string $zinc = null; - + /** * Instantiates a new IncoCompoMinerals and sets the default values. - */ - public function __construct() { + */ + 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 IncoCompoMinerals - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoMinerals { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoMinerals + { return new IncoCompoMinerals(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * Gets the calcium property value. The calcium property - * @return string|null - */ - public function getCalcium(): ?string { + */ + public function getCalcium(): ?string + { return $this->calcium; } /** * Gets the chloride property value. The chloride property - * @return string|null - */ - public function getChloride(): ?string { + */ + public function getChloride(): ?string + { return $this->chloride; } /** * Gets the chromium property value. The chromium property - * @return string|null - */ - public function getChromium(): ?string { + */ + public function getChromium(): ?string + { return $this->chromium; } /** * Gets the copper property value. The copper property - * @return string|null - */ - public function getCopper(): ?string { + */ + public function getCopper(): ?string + { return $this->copper; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'calcium' => fn(ParseNode $n) => $o->setCalcium($n->getStringValue()), - 'chloride' => fn(ParseNode $n) => $o->setChloride($n->getStringValue()), - 'chromium' => fn(ParseNode $n) => $o->setChromium($n->getStringValue()), - 'copper' => fn(ParseNode $n) => $o->setCopper($n->getStringValue()), - 'iodine' => fn(ParseNode $n) => $o->setIodine($n->getStringValue()), - 'iron' => fn(ParseNode $n) => $o->setIron($n->getStringValue()), - 'magnesium' => fn(ParseNode $n) => $o->setMagnesium($n->getStringValue()), - 'manganese' => fn(ParseNode $n) => $o->setManganese($n->getStringValue()), - 'molybdenum' => fn(ParseNode $n) => $o->setMolybdenum($n->getStringValue()), - 'nitrates' => fn(ParseNode $n) => $o->setNitrates($n->getStringValue()), - 'phosphorus' => fn(ParseNode $n) => $o->setPhosphorus($n->getStringValue()), - 'potassium' => fn(ParseNode $n) => $o->setPotassium($n->getStringValue()), - 'selenium' => fn(ParseNode $n) => $o->setSelenium($n->getStringValue()), - 'sulfur' => fn(ParseNode $n) => $o->setSulfur($n->getStringValue()), - 'zinc' => fn(ParseNode $n) => $o->setZinc($n->getStringValue()), + + return [ + 'calcium' => fn (ParseNode $n) => $o->setCalcium($n->getStringValue()), + 'chloride' => fn (ParseNode $n) => $o->setChloride($n->getStringValue()), + 'chromium' => fn (ParseNode $n) => $o->setChromium($n->getStringValue()), + 'copper' => fn (ParseNode $n) => $o->setCopper($n->getStringValue()), + 'iodine' => fn (ParseNode $n) => $o->setIodine($n->getStringValue()), + 'iron' => fn (ParseNode $n) => $o->setIron($n->getStringValue()), + 'magnesium' => fn (ParseNode $n) => $o->setMagnesium($n->getStringValue()), + 'manganese' => fn (ParseNode $n) => $o->setManganese($n->getStringValue()), + 'molybdenum' => fn (ParseNode $n) => $o->setMolybdenum($n->getStringValue()), + 'nitrates' => fn (ParseNode $n) => $o->setNitrates($n->getStringValue()), + 'phosphorus' => fn (ParseNode $n) => $o->setPhosphorus($n->getStringValue()), + 'potassium' => fn (ParseNode $n) => $o->setPotassium($n->getStringValue()), + 'selenium' => fn (ParseNode $n) => $o->setSelenium($n->getStringValue()), + 'sulfur' => fn (ParseNode $n) => $o->setSulfur($n->getStringValue()), + 'zinc' => fn (ParseNode $n) => $o->setZinc($n->getStringValue()), ]; } /** * Gets the iodine property value. The iodine property - * @return string|null - */ - public function getIodine(): ?string { + */ + public function getIodine(): ?string + { return $this->iodine; } /** * Gets the iron property value. The iron property - * @return string|null - */ - public function getIron(): ?string { + */ + public function getIron(): ?string + { return $this->iron; } /** * Gets the magnesium property value. The magnesium property - * @return string|null - */ - public function getMagnesium(): ?string { + */ + public function getMagnesium(): ?string + { return $this->magnesium; } /** * Gets the manganese property value. The manganese property - * @return string|null - */ - public function getManganese(): ?string { + */ + public function getManganese(): ?string + { return $this->manganese; } /** * Gets the molybdenum property value. The molybdenum property - * @return string|null - */ - public function getMolybdenum(): ?string { + */ + public function getMolybdenum(): ?string + { return $this->molybdenum; } /** * Gets the nitrates property value. The nitrates property - * @return string|null - */ - public function getNitrates(): ?string { + */ + public function getNitrates(): ?string + { return $this->nitrates; } /** * Gets the phosphorus property value. The phosphorus property - * @return string|null - */ - public function getPhosphorus(): ?string { + */ + public function getPhosphorus(): ?string + { return $this->phosphorus; } /** * Gets the potassium property value. The potassium property - * @return string|null - */ - public function getPotassium(): ?string { + */ + public function getPotassium(): ?string + { return $this->potassium; } /** * Gets the selenium property value. The selenium property - * @return string|null - */ - public function getSelenium(): ?string { + */ + public function getSelenium(): ?string + { return $this->selenium; } /** * Gets the sulfur property value. The sulfur property - * @return string|null - */ - public function getSulfur(): ?string { + */ + public function getSulfur(): ?string + { return $this->sulfur; } /** * Gets the zinc property value. The zinc property - * @return string|null - */ - public function getZinc(): ?string { + */ + public function getZinc(): ?string + { return $this->zinc; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeStringValue('calcium', $this->getCalcium()); $writer->writeStringValue('chloride', $this->getChloride()); $writer->writeStringValue('chromium', $this->getChromium()); @@ -286,130 +297,161 @@ class IncoCompoMinerals implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the calcium property value. The calcium property - * @param string|null $value Value to set for the calcium property. - */ - public function setCalcium(?string $value): void { + * + * @param string|null $value Value to set for the calcium property. + */ + public function setCalcium(?string $value): void + { $this->calcium = $value; } /** * Sets the chloride property value. The chloride property - * @param string|null $value Value to set for the chloride property. - */ - public function setChloride(?string $value): void { + * + * @param string|null $value Value to set for the chloride property. + */ + public function setChloride(?string $value): void + { $this->chloride = $value; } /** * Sets the chromium property value. The chromium property - * @param string|null $value Value to set for the chromium property. - */ - public function setChromium(?string $value): void { + * + * @param string|null $value Value to set for the chromium property. + */ + public function setChromium(?string $value): void + { $this->chromium = $value; } /** * Sets the copper property value. The copper property - * @param string|null $value Value to set for the copper property. - */ - public function setCopper(?string $value): void { + * + * @param string|null $value Value to set for the copper property. + */ + public function setCopper(?string $value): void + { $this->copper = $value; } /** * Sets the iodine property value. The iodine property - * @param string|null $value Value to set for the iodine property. - */ - public function setIodine(?string $value): void { + * + * @param string|null $value Value to set for the iodine property. + */ + public function setIodine(?string $value): void + { $this->iodine = $value; } /** * Sets the iron property value. The iron property - * @param string|null $value Value to set for the iron property. - */ - public function setIron(?string $value): void { + * + * @param string|null $value Value to set for the iron property. + */ + public function setIron(?string $value): void + { $this->iron = $value; } /** * Sets the magnesium property value. The magnesium property - * @param string|null $value Value to set for the magnesium property. - */ - public function setMagnesium(?string $value): void { + * + * @param string|null $value Value to set for the magnesium property. + */ + public function setMagnesium(?string $value): void + { $this->magnesium = $value; } /** * Sets the manganese property value. The manganese property - * @param string|null $value Value to set for the manganese property. - */ - public function setManganese(?string $value): void { + * + * @param string|null $value Value to set for the manganese property. + */ + public function setManganese(?string $value): void + { $this->manganese = $value; } /** * Sets the molybdenum property value. The molybdenum property - * @param string|null $value Value to set for the molybdenum property. - */ - public function setMolybdenum(?string $value): void { + * + * @param string|null $value Value to set for the molybdenum property. + */ + public function setMolybdenum(?string $value): void + { $this->molybdenum = $value; } /** * Sets the nitrates property value. The nitrates property - * @param string|null $value Value to set for the nitrates property. - */ - public function setNitrates(?string $value): void { + * + * @param string|null $value Value to set for the nitrates property. + */ + public function setNitrates(?string $value): void + { $this->nitrates = $value; } /** * Sets the phosphorus property value. The phosphorus property - * @param string|null $value Value to set for the phosphorus property. - */ - public function setPhosphorus(?string $value): void { + * + * @param string|null $value Value to set for the phosphorus property. + */ + public function setPhosphorus(?string $value): void + { $this->phosphorus = $value; } /** * Sets the potassium property value. The potassium property - * @param string|null $value Value to set for the potassium property. - */ - public function setPotassium(?string $value): void { + * + * @param string|null $value Value to set for the potassium property. + */ + public function setPotassium(?string $value): void + { $this->potassium = $value; } /** * Sets the selenium property value. The selenium property - * @param string|null $value Value to set for the selenium property. - */ - public function setSelenium(?string $value): void { + * + * @param string|null $value Value to set for the selenium property. + */ + public function setSelenium(?string $value): void + { $this->selenium = $value; } /** * Sets the sulfur property value. The sulfur property - * @param string|null $value Value to set for the sulfur property. - */ - public function setSulfur(?string $value): void { + * + * @param string|null $value Value to set for the sulfur property. + */ + public function setSulfur(?string $value): void + { $this->sulfur = $value; } /** * Sets the zinc property value. The zinc property - * @param string|null $value Value to set for the zinc property. - */ - public function setZinc(?string $value): void { + * + * @param string|null $value Value to set for the zinc property. + */ + public function setZinc(?string $value): void + { $this->zinc = $value; } - } diff --git a/client/Models/IncoCompoNutriScore.php b/client/Models/IncoCompoNutriScore.php old mode 100755 new mode 100644 index ef9ae2e..e41c2c8 --- a/client/Models/IncoCompoNutriScore.php +++ b/client/Models/IncoCompoNutriScore.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 string|null $grade The grade property - */ + * @var string|null The grade property + */ private ?string $grade = null; - + /** - * @var string|null $grade2022 The grade2022 property - */ + * @var string|null The grade2022 property + */ private ?string $grade2022 = null; - + /** - * @var string|null $isGradeAArticle The isGradeAArticle property - */ + * @var string|null The isGradeAArticle property + */ private ?string $isGradeAArticle = null; - + /** - * @var string|null $isRedMeat The isRedMeat property - */ + * @var string|null The isRedMeat property + */ private ?string $isRedMeat = null; - + /** - * @var string|null $negativeComponent The negativeComponent property - */ + * @var string|null The negativeComponent property + */ private ?string $negativeComponent = null; - + /** - * @var string|null $negativeComponent2022 The negativeComponent2022 property - */ + * @var string|null The negativeComponent2022 property + */ private ?string $negativeComponent2022 = null; - + /** - * @var string|null $positiveComponent The positiveComponent property - */ + * @var string|null The positiveComponent property + */ private ?string $positiveComponent = null; - + /** - * @var string|null $positiveComponent2022 The positiveComponent2022 property - */ + * @var string|null The positiveComponent2022 property + */ private ?string $positiveComponent2022 = null; - + /** - * @var string|null $score The score property - */ + * @var string|null The score property + */ private ?string $score = null; - + /** - * @var string|null $score2022 The score2022 property - */ + * @var string|null The score2022 property + */ private ?string $score2022 = null; - + /** * Instantiates a new IncoCompoNutriScore and sets the default values. - */ - public function __construct() { + */ + 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 IncoCompoNutriScore - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoNutriScore { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoNutriScore + { return new IncoCompoNutriScore(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'grade' => fn(ParseNode $n) => $o->setGrade($n->getStringValue()), - 'grade2022' => fn(ParseNode $n) => $o->setGrade2022($n->getStringValue()), - 'isGradeAArticle' => fn(ParseNode $n) => $o->setIsGradeAArticle($n->getStringValue()), - 'isRedMeat' => fn(ParseNode $n) => $o->setIsRedMeat($n->getStringValue()), - 'negativeComponent' => fn(ParseNode $n) => $o->setNegativeComponent($n->getStringValue()), - 'negativeComponent2022' => fn(ParseNode $n) => $o->setNegativeComponent2022($n->getStringValue()), - 'positiveComponent' => fn(ParseNode $n) => $o->setPositiveComponent($n->getStringValue()), - 'positiveComponent2022' => fn(ParseNode $n) => $o->setPositiveComponent2022($n->getStringValue()), - 'score' => fn(ParseNode $n) => $o->setScore($n->getStringValue()), - 'score2022' => fn(ParseNode $n) => $o->setScore2022($n->getStringValue()), + + return [ + 'grade' => fn (ParseNode $n) => $o->setGrade($n->getStringValue()), + 'grade2022' => fn (ParseNode $n) => $o->setGrade2022($n->getStringValue()), + 'isGradeAArticle' => fn (ParseNode $n) => $o->setIsGradeAArticle($n->getStringValue()), + 'isRedMeat' => fn (ParseNode $n) => $o->setIsRedMeat($n->getStringValue()), + 'negativeComponent' => fn (ParseNode $n) => $o->setNegativeComponent($n->getStringValue()), + 'negativeComponent2022' => fn (ParseNode $n) => $o->setNegativeComponent2022($n->getStringValue()), + 'positiveComponent' => fn (ParseNode $n) => $o->setPositiveComponent($n->getStringValue()), + 'positiveComponent2022' => fn (ParseNode $n) => $o->setPositiveComponent2022($n->getStringValue()), + 'score' => fn (ParseNode $n) => $o->setScore($n->getStringValue()), + 'score2022' => fn (ParseNode $n) => $o->setScore2022($n->getStringValue()), ]; } /** * Gets the grade property value. The grade property - * @return string|null - */ - public function getGrade(): ?string { + */ + public function getGrade(): ?string + { return $this->grade; } /** * Gets the grade2022 property value. The grade2022 property - * @return string|null - */ - public function getGrade2022(): ?string { + */ + public function getGrade2022(): ?string + { return $this->grade2022; } /** * Gets the isGradeAArticle property value. The isGradeAArticle property - * @return string|null - */ - public function getIsGradeAArticle(): ?string { + */ + public function getIsGradeAArticle(): ?string + { return $this->isGradeAArticle; } /** * Gets the isRedMeat property value. The isRedMeat property - * @return string|null - */ - public function getIsRedMeat(): ?string { + */ + public function getIsRedMeat(): ?string + { return $this->isRedMeat; } /** * Gets the negativeComponent property value. The negativeComponent property - * @return string|null - */ - public function getNegativeComponent(): ?string { + */ + public function getNegativeComponent(): ?string + { return $this->negativeComponent; } /** * Gets the negativeComponent2022 property value. The negativeComponent2022 property - * @return string|null - */ - public function getNegativeComponent2022(): ?string { + */ + public function getNegativeComponent2022(): ?string + { return $this->negativeComponent2022; } /** * Gets the positiveComponent property value. The positiveComponent property - * @return string|null - */ - public function getPositiveComponent(): ?string { + */ + public function getPositiveComponent(): ?string + { return $this->positiveComponent; } /** * Gets the positiveComponent2022 property value. The positiveComponent2022 property - * @return string|null - */ - public function getPositiveComponent2022(): ?string { + */ + public function getPositiveComponent2022(): ?string + { return $this->positiveComponent2022; } /** * Gets the score property value. The score property - * @return string|null - */ - public function getScore(): ?string { + */ + public function getScore(): ?string + { return $this->score; } /** * Gets the score2022 property value. The score2022 property - * @return string|null - */ - public function getScore2022(): ?string { + */ + public function getScore2022(): ?string + { return $this->score2022; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeStringValue('grade', $this->getGrade()); $writer->writeStringValue('grade2022', $this->getGrade2022()); $writer->writeStringValue('isGradeAArticle', $this->getIsGradeAArticle()); @@ -211,90 +222,111 @@ class IncoCompoNutriScore implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the grade property value. The grade property - * @param string|null $value Value to set for the grade property. - */ - public function setGrade(?string $value): void { + * + * @param string|null $value Value to set for the grade property. + */ + public function setGrade(?string $value): void + { $this->grade = $value; } /** * Sets the grade2022 property value. The grade2022 property - * @param string|null $value Value to set for the grade2022 property. - */ - public function setGrade2022(?string $value): void { + * + * @param string|null $value Value to set for the grade2022 property. + */ + public function setGrade2022(?string $value): void + { $this->grade2022 = $value; } /** * Sets the isGradeAArticle property value. The isGradeAArticle property - * @param string|null $value Value to set for the isGradeAArticle property. - */ - public function setIsGradeAArticle(?string $value): void { + * + * @param string|null $value Value to set for the isGradeAArticle property. + */ + public function setIsGradeAArticle(?string $value): void + { $this->isGradeAArticle = $value; } /** * Sets the isRedMeat property value. The isRedMeat property - * @param string|null $value Value to set for the isRedMeat property. - */ - public function setIsRedMeat(?string $value): void { + * + * @param string|null $value Value to set for the isRedMeat property. + */ + public function setIsRedMeat(?string $value): void + { $this->isRedMeat = $value; } /** * Sets the negativeComponent property value. The negativeComponent property - * @param string|null $value Value to set for the negativeComponent property. - */ - public function setNegativeComponent(?string $value): void { + * + * @param string|null $value Value to set for the negativeComponent property. + */ + public function setNegativeComponent(?string $value): void + { $this->negativeComponent = $value; } /** * Sets the negativeComponent2022 property value. The negativeComponent2022 property - * @param string|null $value Value to set for the negativeComponent2022 property. - */ - public function setNegativeComponent2022(?string $value): void { + * + * @param string|null $value Value to set for the negativeComponent2022 property. + */ + public function setNegativeComponent2022(?string $value): void + { $this->negativeComponent2022 = $value; } /** * Sets the positiveComponent property value. The positiveComponent property - * @param string|null $value Value to set for the positiveComponent property. - */ - public function setPositiveComponent(?string $value): void { + * + * @param string|null $value Value to set for the positiveComponent property. + */ + public function setPositiveComponent(?string $value): void + { $this->positiveComponent = $value; } /** * Sets the positiveComponent2022 property value. The positiveComponent2022 property - * @param string|null $value Value to set for the positiveComponent2022 property. - */ - public function setPositiveComponent2022(?string $value): void { + * + * @param string|null $value Value to set for the positiveComponent2022 property. + */ + public function setPositiveComponent2022(?string $value): void + { $this->positiveComponent2022 = $value; } /** * Sets the score property value. The score property - * @param string|null $value Value to set for the score property. - */ - public function setScore(?string $value): void { + * + * @param string|null $value Value to set for the score property. + */ + public function setScore(?string $value): void + { $this->score = $value; } /** * Sets the score2022 property value. The score2022 property - * @param string|null $value Value to set for the score2022 property. - */ - public function setScore2022(?string $value): void { + * + * @param string|null $value Value to set for the score2022 property. + */ + public function setScore2022(?string $value): void + { $this->score2022 = $value; } - } diff --git a/client/Models/IncoCompoNutriScorePoints.php b/client/Models/IncoCompoNutriScorePoints.php old mode 100755 new mode 100644 index ac29da4..5d1b8b1 --- a/client/Models/IncoCompoNutriScorePoints.php +++ b/client/Models/IncoCompoNutriScorePoints.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 string|null $energyPoints The energyPoints property - */ + * @var string|null The energyPoints property + */ private ?string $energyPoints = null; - + /** - * @var string|null $fiberPoints The fiberPoints property - */ + * @var string|null The fiberPoints property + */ private ?string $fiberPoints = null; - + /** - * @var string|null $freshFnlPoints The freshFnlPoints property - */ + * @var string|null The freshFnlPoints property + */ private ?string $freshFnlPoints = null; - + /** - * @var string|null $proteinPoints The proteinPoints property - */ + * @var string|null The proteinPoints property + */ private ?string $proteinPoints = null; - + /** - * @var string|null $saltPoints The saltPoints property - */ + * @var string|null The saltPoints property + */ private ?string $saltPoints = null; - + /** - * @var string|null $saturatedFatPoints The saturatedFatPoints property - */ + * @var string|null The saturatedFatPoints property + */ private ?string $saturatedFatPoints = null; - + /** - * @var string|null $sugarsPoints The sugarsPoints property - */ + * @var string|null The sugarsPoints property + */ private ?string $sugarsPoints = null; - + /** * Instantiates a new IncoCompoNutriScorePoints and sets the default values. - */ - public function __construct() { + */ + 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 IncoCompoNutriScorePoints - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoNutriScorePoints { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoNutriScorePoints + { return new IncoCompoNutriScorePoints(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * Gets the energyPoints property value. The energyPoints property - * @return string|null - */ - public function getEnergyPoints(): ?string { + */ + public function getEnergyPoints(): ?string + { return $this->energyPoints; } /** * Gets the fiberPoints property value. The fiberPoints property - * @return string|null - */ - public function getFiberPoints(): ?string { + */ + public function getFiberPoints(): ?string + { return $this->fiberPoints; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'energyPoints' => fn(ParseNode $n) => $o->setEnergyPoints($n->getStringValue()), - 'fiberPoints' => fn(ParseNode $n) => $o->setFiberPoints($n->getStringValue()), - 'freshFnlPoints' => fn(ParseNode $n) => $o->setFreshFnlPoints($n->getStringValue()), - 'proteinPoints' => fn(ParseNode $n) => $o->setProteinPoints($n->getStringValue()), - 'saltPoints' => fn(ParseNode $n) => $o->setSaltPoints($n->getStringValue()), - 'saturatedFatPoints' => fn(ParseNode $n) => $o->setSaturatedFatPoints($n->getStringValue()), - 'sugarsPoints' => fn(ParseNode $n) => $o->setSugarsPoints($n->getStringValue()), + + return [ + 'energyPoints' => fn (ParseNode $n) => $o->setEnergyPoints($n->getStringValue()), + 'fiberPoints' => fn (ParseNode $n) => $o->setFiberPoints($n->getStringValue()), + 'freshFnlPoints' => fn (ParseNode $n) => $o->setFreshFnlPoints($n->getStringValue()), + 'proteinPoints' => fn (ParseNode $n) => $o->setProteinPoints($n->getStringValue()), + 'saltPoints' => fn (ParseNode $n) => $o->setSaltPoints($n->getStringValue()), + 'saturatedFatPoints' => fn (ParseNode $n) => $o->setSaturatedFatPoints($n->getStringValue()), + 'sugarsPoints' => fn (ParseNode $n) => $o->setSugarsPoints($n->getStringValue()), ]; } /** * Gets the freshFnlPoints property value. The freshFnlPoints property - * @return string|null - */ - public function getFreshFnlPoints(): ?string { + */ + public function getFreshFnlPoints(): ?string + { return $this->freshFnlPoints; } /** * Gets the proteinPoints property value. The proteinPoints property - * @return string|null - */ - public function getProteinPoints(): ?string { + */ + public function getProteinPoints(): ?string + { return $this->proteinPoints; } /** * Gets the saltPoints property value. The saltPoints property - * @return string|null - */ - public function getSaltPoints(): ?string { + */ + public function getSaltPoints(): ?string + { return $this->saltPoints; } /** * Gets the saturatedFatPoints property value. The saturatedFatPoints property - * @return string|null - */ - public function getSaturatedFatPoints(): ?string { + */ + public function getSaturatedFatPoints(): ?string + { return $this->saturatedFatPoints; } /** * Gets the sugarsPoints property value. The sugarsPoints property - * @return string|null - */ - public function getSugarsPoints(): ?string { + */ + public function getSugarsPoints(): ?string + { return $this->sugarsPoints; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeStringValue('energyPoints', $this->getEnergyPoints()); $writer->writeStringValue('fiberPoints', $this->getFiberPoints()); $writer->writeStringValue('freshFnlPoints', $this->getFreshFnlPoints()); @@ -166,66 +177,81 @@ class IncoCompoNutriScorePoints implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the energyPoints property value. The energyPoints property - * @param string|null $value Value to set for the energyPoints property. - */ - public function setEnergyPoints(?string $value): void { + * + * @param string|null $value Value to set for the energyPoints property. + */ + public function setEnergyPoints(?string $value): void + { $this->energyPoints = $value; } /** * Sets the fiberPoints property value. The fiberPoints property - * @param string|null $value Value to set for the fiberPoints property. - */ - public function setFiberPoints(?string $value): void { + * + * @param string|null $value Value to set for the fiberPoints property. + */ + public function setFiberPoints(?string $value): void + { $this->fiberPoints = $value; } /** * Sets the freshFnlPoints property value. The freshFnlPoints property - * @param string|null $value Value to set for the freshFnlPoints property. - */ - public function setFreshFnlPoints(?string $value): void { + * + * @param string|null $value Value to set for the freshFnlPoints property. + */ + public function setFreshFnlPoints(?string $value): void + { $this->freshFnlPoints = $value; } /** * Sets the proteinPoints property value. The proteinPoints property - * @param string|null $value Value to set for the proteinPoints property. - */ - public function setProteinPoints(?string $value): void { + * + * @param string|null $value Value to set for the proteinPoints property. + */ + public function setProteinPoints(?string $value): void + { $this->proteinPoints = $value; } /** * Sets the saltPoints property value. The saltPoints property - * @param string|null $value Value to set for the saltPoints property. - */ - public function setSaltPoints(?string $value): void { + * + * @param string|null $value Value to set for the saltPoints property. + */ + public function setSaltPoints(?string $value): void + { $this->saltPoints = $value; } /** * Sets the saturatedFatPoints property value. The saturatedFatPoints property - * @param string|null $value Value to set for the saturatedFatPoints property. - */ - public function setSaturatedFatPoints(?string $value): void { + * + * @param string|null $value Value to set for the saturatedFatPoints property. + */ + public function setSaturatedFatPoints(?string $value): void + { $this->saturatedFatPoints = $value; } /** * Sets the sugarsPoints property value. The sugarsPoints property - * @param string|null $value Value to set for the sugarsPoints property. - */ - public function setSugarsPoints(?string $value): void { + * + * @param string|null $value Value to set for the sugarsPoints property. + */ + public function setSugarsPoints(?string $value): void + { $this->sugarsPoints = $value; } - } diff --git a/client/Models/IncoCompoPortionMacronutrients.php b/client/Models/IncoCompoPortionMacronutrients.php old mode 100755 new mode 100644 index 3c95d28..f1bb933 --- a/client/Models/IncoCompoPortionMacronutrients.php +++ b/client/Models/IncoCompoPortionMacronutrients.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 NutrientValue|null $carbohydrates Valeur d'un nutriment avec quantité et précision facultative. - */ + * @var NutrientValue|null Valeur d'un nutriment avec quantité et précision facultative. + */ private ?NutrientValue $carbohydrates = null; - + /** - * @var NutrientValue|null $fat Valeur d'un nutriment avec quantité et précision facultative. - */ + * @var NutrientValue|null Valeur d'un nutriment avec quantité et précision facultative. + */ private ?NutrientValue $fat = null; - + /** - * @var NutrientValue|null $fiber Valeur d'un nutriment avec quantité et précision facultative. - */ + * @var NutrientValue|null Valeur d'un nutriment avec quantité et précision facultative. + */ private ?NutrientValue $fiber = null; - + /** - * @var NutrientValue|null $protein Valeur d'un nutriment avec quantité et précision facultative. - */ + * @var NutrientValue|null Valeur d'un nutriment avec quantité et précision facultative. + */ private ?NutrientValue $protein = null; - + /** - * @var NutrientValue|null $salt Valeur d'un nutriment avec quantité et précision facultative. - */ + * @var NutrientValue|null Valeur d'un nutriment avec quantité et précision facultative. + */ private ?NutrientValue $salt = null; - + /** - * @var NutrientValue|null $saturatedFat Valeur d'un nutriment avec quantité et précision facultative. - */ + * @var NutrientValue|null Valeur d'un nutriment avec quantité et précision facultative. + */ private ?NutrientValue $saturatedFat = null; - + /** - * @var string|null $sodium The sodium property - */ + * @var string|null The sodium property + */ private ?string $sodium = null; - + /** - * @var NutrientValue|null $sugars Valeur d'un nutriment avec quantité et précision facultative. - */ + * @var NutrientValue|null Valeur d'un nutriment avec quantité et précision facultative. + */ private ?NutrientValue $sugars = null; - + /** * Instantiates a new IncoCompoPortionMacronutrients and sets the default values. - */ - public function __construct() { + */ + 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 IncoCompoPortionMacronutrients - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoPortionMacronutrients { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoPortionMacronutrients + { return new IncoCompoPortionMacronutrients(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * Gets the carbohydrates property value. Valeur d'un nutriment avec quantité et précision facultative. - * @return NutrientValue|null - */ - public function getCarbohydrates(): ?NutrientValue { + */ + public function getCarbohydrates(): ?NutrientValue + { return $this->carbohydrates; } /** * Gets the fat property value. Valeur d'un nutriment avec quantité et précision facultative. - * @return NutrientValue|null - */ - public function getFat(): ?NutrientValue { + */ + public function getFat(): ?NutrientValue + { return $this->fat; } /** * Gets the fiber property value. Valeur d'un nutriment avec quantité et précision facultative. - * @return NutrientValue|null - */ - public function getFiber(): ?NutrientValue { + */ + public function getFiber(): ?NutrientValue + { return $this->fiber; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'carbohydrates' => fn(ParseNode $n) => $o->setCarbohydrates($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])), - 'fat' => fn(ParseNode $n) => $o->setFat($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])), - 'fiber' => fn(ParseNode $n) => $o->setFiber($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])), - 'protein' => fn(ParseNode $n) => $o->setProtein($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])), - 'salt' => fn(ParseNode $n) => $o->setSalt($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])), - 'saturatedFat' => fn(ParseNode $n) => $o->setSaturatedFat($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])), - 'sodium' => fn(ParseNode $n) => $o->setSodium($n->getStringValue()), - 'sugars' => fn(ParseNode $n) => $o->setSugars($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])), + + return [ + 'carbohydrates' => fn (ParseNode $n) => $o->setCarbohydrates($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])), + 'fat' => fn (ParseNode $n) => $o->setFat($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])), + 'fiber' => fn (ParseNode $n) => $o->setFiber($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])), + 'protein' => fn (ParseNode $n) => $o->setProtein($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])), + 'salt' => fn (ParseNode $n) => $o->setSalt($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])), + 'saturatedFat' => fn (ParseNode $n) => $o->setSaturatedFat($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])), + 'sodium' => fn (ParseNode $n) => $o->setSodium($n->getStringValue()), + 'sugars' => fn (ParseNode $n) => $o->setSugars($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])), ]; } /** * Gets the protein property value. Valeur d'un nutriment avec quantité et précision facultative. - * @return NutrientValue|null - */ - public function getProtein(): ?NutrientValue { + */ + public function getProtein(): ?NutrientValue + { return $this->protein; } /** * Gets the salt property value. Valeur d'un nutriment avec quantité et précision facultative. - * @return NutrientValue|null - */ - public function getSalt(): ?NutrientValue { + */ + public function getSalt(): ?NutrientValue + { return $this->salt; } /** * Gets the saturatedFat property value. Valeur d'un nutriment avec quantité et précision facultative. - * @return NutrientValue|null - */ - public function getSaturatedFat(): ?NutrientValue { + */ + public function getSaturatedFat(): ?NutrientValue + { return $this->saturatedFat; } /** * Gets the sodium property value. The sodium property - * @return string|null - */ - public function getSodium(): ?string { + */ + public function getSodium(): ?string + { return $this->sodium; } /** * Gets the sugars property value. Valeur d'un nutriment avec quantité et précision facultative. - * @return NutrientValue|null - */ - public function getSugars(): ?NutrientValue { + */ + public function getSugars(): ?NutrientValue + { return $this->sugars; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeObjectValue('carbohydrates', $this->getCarbohydrates()); $writer->writeObjectValue('fat', $this->getFat()); $writer->writeObjectValue('fiber', $this->getFiber()); @@ -181,74 +192,91 @@ class IncoCompoPortionMacronutrients implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the carbohydrates property value. Valeur d'un nutriment avec quantité et précision facultative. - * @param NutrientValue|null $value Value to set for the carbohydrates property. - */ - public function setCarbohydrates(?NutrientValue $value): void { + * + * @param NutrientValue|null $value Value to set for the carbohydrates property. + */ + public function setCarbohydrates(?NutrientValue $value): void + { $this->carbohydrates = $value; } /** * Sets the fat property value. Valeur d'un nutriment avec quantité et précision facultative. - * @param NutrientValue|null $value Value to set for the fat property. - */ - public function setFat(?NutrientValue $value): void { + * + * @param NutrientValue|null $value Value to set for the fat property. + */ + public function setFat(?NutrientValue $value): void + { $this->fat = $value; } /** * Sets the fiber property value. Valeur d'un nutriment avec quantité et précision facultative. - * @param NutrientValue|null $value Value to set for the fiber property. - */ - public function setFiber(?NutrientValue $value): void { + * + * @param NutrientValue|null $value Value to set for the fiber property. + */ + public function setFiber(?NutrientValue $value): void + { $this->fiber = $value; } /** * Sets the protein property value. Valeur d'un nutriment avec quantité et précision facultative. - * @param NutrientValue|null $value Value to set for the protein property. - */ - public function setProtein(?NutrientValue $value): void { + * + * @param NutrientValue|null $value Value to set for the protein property. + */ + public function setProtein(?NutrientValue $value): void + { $this->protein = $value; } /** * Sets the salt property value. Valeur d'un nutriment avec quantité et précision facultative. - * @param NutrientValue|null $value Value to set for the salt property. - */ - public function setSalt(?NutrientValue $value): void { + * + * @param NutrientValue|null $value Value to set for the salt property. + */ + public function setSalt(?NutrientValue $value): void + { $this->salt = $value; } /** * Sets the saturatedFat property value. Valeur d'un nutriment avec quantité et précision facultative. - * @param NutrientValue|null $value Value to set for the saturatedFat property. - */ - public function setSaturatedFat(?NutrientValue $value): void { + * + * @param NutrientValue|null $value Value to set for the saturatedFat property. + */ + public function setSaturatedFat(?NutrientValue $value): void + { $this->saturatedFat = $value; } /** * Sets the sodium property value. The sodium property - * @param string|null $value Value to set for the sodium property. - */ - public function setSodium(?string $value): void { + * + * @param string|null $value Value to set for the sodium property. + */ + public function setSodium(?string $value): void + { $this->sodium = $value; } /** * Sets the sugars property value. Valeur d'un nutriment avec quantité et précision facultative. - * @param NutrientValue|null $value Value to set for the sugars property. - */ - public function setSugars(?NutrientValue $value): void { + * + * @param NutrientValue|null $value Value to set for the sugars property. + */ + public function setSugars(?NutrientValue $value): void + { $this->sugars = $value; } - } diff --git a/client/Models/IncoCompoReferenceIntakes.php b/client/Models/IncoCompoReferenceIntakes.php old mode 100755 new mode 100644 index 3cb06da..eca33e0 --- a/client/Models/IncoCompoReferenceIntakes.php +++ b/client/Models/IncoCompoReferenceIntakes.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 PercentageValue|null $carbohydrates Valeur sous forme de pourcentage (0-100%). - */ + * @var PercentageValue|null Valeur sous forme de pourcentage (0-100%). + */ private ?PercentageValue $carbohydrates = null; - + /** - * @var PercentageValue|null $energyE14 Valeur sous forme de pourcentage (0-100%). - */ + * @var PercentageValue|null Valeur sous forme de pourcentage (0-100%). + */ private ?PercentageValue $energyE14 = null; - + /** - * @var PercentageValue|null $energyKj Valeur sous forme de pourcentage (0-100%). - */ + * @var PercentageValue|null Valeur sous forme de pourcentage (0-100%). + */ private ?PercentageValue $energyKj = null; - + /** - * @var PercentageValue|null $fat Valeur sous forme de pourcentage (0-100%). - */ + * @var PercentageValue|null Valeur sous forme de pourcentage (0-100%). + */ private ?PercentageValue $fat = null; - + /** - * @var string|null $portionAmount The portionAmount property - */ + * @var string|null The portionAmount property + */ private ?string $portionAmount = null; - + /** - * @var PercentageValue|null $protein Valeur sous forme de pourcentage (0-100%). - */ + * @var PercentageValue|null Valeur sous forme de pourcentage (0-100%). + */ private ?PercentageValue $protein = null; - + /** - * @var string|null $proteinToLipidRatio The proteinToLipidRatio property - */ + * @var string|null The proteinToLipidRatio property + */ private ?string $proteinToLipidRatio = null; - + /** - * @var PercentageValue|null $salt Valeur sous forme de pourcentage (0-100%). - */ + * @var PercentageValue|null Valeur sous forme de pourcentage (0-100%). + */ private ?PercentageValue $salt = null; - + /** - * @var PercentageValue|null $saturatedFat Valeur sous forme de pourcentage (0-100%). - */ + * @var PercentageValue|null Valeur sous forme de pourcentage (0-100%). + */ private ?PercentageValue $saturatedFat = null; - + /** - * @var PercentageValue|null $sugars Valeur sous forme de pourcentage (0-100%). - */ + * @var PercentageValue|null Valeur sous forme de pourcentage (0-100%). + */ private ?PercentageValue $sugars = null; - + /** * Instantiates a new IncoCompoReferenceIntakes and sets the default values. - */ - public function __construct() { + */ + 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 IncoCompoReferenceIntakes - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoReferenceIntakes { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoReferenceIntakes + { return new IncoCompoReferenceIntakes(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * Gets the carbohydrates property value. Valeur sous forme de pourcentage (0-100%). - * @return PercentageValue|null - */ - public function getCarbohydrates(): ?PercentageValue { + */ + public function getCarbohydrates(): ?PercentageValue + { return $this->carbohydrates; } /** * Gets the energyE14 property value. Valeur sous forme de pourcentage (0-100%). - * @return PercentageValue|null - */ - public function getEnergyE14(): ?PercentageValue { + */ + public function getEnergyE14(): ?PercentageValue + { return $this->energyE14; } /** * Gets the energyKj property value. Valeur sous forme de pourcentage (0-100%). - * @return PercentageValue|null - */ - public function getEnergyKj(): ?PercentageValue { + */ + public function getEnergyKj(): ?PercentageValue + { return $this->energyKj; } /** * Gets the fat property value. Valeur sous forme de pourcentage (0-100%). - * @return PercentageValue|null - */ - public function getFat(): ?PercentageValue { + */ + public function getFat(): ?PercentageValue + { return $this->fat; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'carbohydrates' => fn(ParseNode $n) => $o->setCarbohydrates($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])), - 'energyE14' => fn(ParseNode $n) => $o->setEnergyE14($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])), - 'energyKj' => fn(ParseNode $n) => $o->setEnergyKj($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])), - 'fat' => fn(ParseNode $n) => $o->setFat($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])), - 'portionAmount' => fn(ParseNode $n) => $o->setPortionAmount($n->getStringValue()), - 'protein' => fn(ParseNode $n) => $o->setProtein($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])), - 'proteinToLipidRatio' => fn(ParseNode $n) => $o->setProteinToLipidRatio($n->getStringValue()), - 'salt' => fn(ParseNode $n) => $o->setSalt($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])), - 'saturatedFat' => fn(ParseNode $n) => $o->setSaturatedFat($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])), - 'sugars' => fn(ParseNode $n) => $o->setSugars($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])), + + return [ + 'carbohydrates' => fn (ParseNode $n) => $o->setCarbohydrates($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])), + 'energyE14' => fn (ParseNode $n) => $o->setEnergyE14($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])), + 'energyKj' => fn (ParseNode $n) => $o->setEnergyKj($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])), + 'fat' => fn (ParseNode $n) => $o->setFat($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])), + 'portionAmount' => fn (ParseNode $n) => $o->setPortionAmount($n->getStringValue()), + 'protein' => fn (ParseNode $n) => $o->setProtein($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])), + 'proteinToLipidRatio' => fn (ParseNode $n) => $o->setProteinToLipidRatio($n->getStringValue()), + 'salt' => fn (ParseNode $n) => $o->setSalt($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])), + 'saturatedFat' => fn (ParseNode $n) => $o->setSaturatedFat($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])), + 'sugars' => fn (ParseNode $n) => $o->setSugars($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])), ]; } /** * Gets the portionAmount property value. The portionAmount property - * @return string|null - */ - public function getPortionAmount(): ?string { + */ + public function getPortionAmount(): ?string + { return $this->portionAmount; } /** * Gets the protein property value. Valeur sous forme de pourcentage (0-100%). - * @return PercentageValue|null - */ - public function getProtein(): ?PercentageValue { + */ + public function getProtein(): ?PercentageValue + { return $this->protein; } /** * Gets the proteinToLipidRatio property value. The proteinToLipidRatio property - * @return string|null - */ - public function getProteinToLipidRatio(): ?string { + */ + public function getProteinToLipidRatio(): ?string + { return $this->proteinToLipidRatio; } /** * Gets the salt property value. Valeur sous forme de pourcentage (0-100%). - * @return PercentageValue|null - */ - public function getSalt(): ?PercentageValue { + */ + public function getSalt(): ?PercentageValue + { return $this->salt; } /** * Gets the saturatedFat property value. Valeur sous forme de pourcentage (0-100%). - * @return PercentageValue|null - */ - public function getSaturatedFat(): ?PercentageValue { + */ + public function getSaturatedFat(): ?PercentageValue + { return $this->saturatedFat; } /** * Gets the sugars property value. Valeur sous forme de pourcentage (0-100%). - * @return PercentageValue|null - */ - public function getSugars(): ?PercentageValue { + */ + public function getSugars(): ?PercentageValue + { return $this->sugars; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeObjectValue('carbohydrates', $this->getCarbohydrates()); $writer->writeObjectValue('energyE14', $this->getEnergyE14()); $writer->writeObjectValue('energyKj', $this->getEnergyKj()); @@ -211,90 +222,111 @@ class IncoCompoReferenceIntakes implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the carbohydrates property value. Valeur sous forme de pourcentage (0-100%). - * @param PercentageValue|null $value Value to set for the carbohydrates property. - */ - public function setCarbohydrates(?PercentageValue $value): void { + * + * @param PercentageValue|null $value Value to set for the carbohydrates property. + */ + public function setCarbohydrates(?PercentageValue $value): void + { $this->carbohydrates = $value; } /** * Sets the energyE14 property value. Valeur sous forme de pourcentage (0-100%). - * @param PercentageValue|null $value Value to set for the energyE14 property. - */ - public function setEnergyE14(?PercentageValue $value): void { + * + * @param PercentageValue|null $value Value to set for the energyE14 property. + */ + public function setEnergyE14(?PercentageValue $value): void + { $this->energyE14 = $value; } /** * Sets the energyKj property value. Valeur sous forme de pourcentage (0-100%). - * @param PercentageValue|null $value Value to set for the energyKj property. - */ - public function setEnergyKj(?PercentageValue $value): void { + * + * @param PercentageValue|null $value Value to set for the energyKj property. + */ + public function setEnergyKj(?PercentageValue $value): void + { $this->energyKj = $value; } /** * Sets the fat property value. Valeur sous forme de pourcentage (0-100%). - * @param PercentageValue|null $value Value to set for the fat property. - */ - public function setFat(?PercentageValue $value): void { + * + * @param PercentageValue|null $value Value to set for the fat property. + */ + public function setFat(?PercentageValue $value): void + { $this->fat = $value; } /** * Sets the portionAmount property value. The portionAmount property - * @param string|null $value Value to set for the portionAmount property. - */ - public function setPortionAmount(?string $value): void { + * + * @param string|null $value Value to set for the portionAmount property. + */ + public function setPortionAmount(?string $value): void + { $this->portionAmount = $value; } /** * Sets the protein property value. Valeur sous forme de pourcentage (0-100%). - * @param PercentageValue|null $value Value to set for the protein property. - */ - public function setProtein(?PercentageValue $value): void { + * + * @param PercentageValue|null $value Value to set for the protein property. + */ + public function setProtein(?PercentageValue $value): void + { $this->protein = $value; } /** * Sets the proteinToLipidRatio property value. The proteinToLipidRatio property - * @param string|null $value Value to set for the proteinToLipidRatio property. - */ - public function setProteinToLipidRatio(?string $value): void { + * + * @param string|null $value Value to set for the proteinToLipidRatio property. + */ + public function setProteinToLipidRatio(?string $value): void + { $this->proteinToLipidRatio = $value; } /** * Sets the salt property value. Valeur sous forme de pourcentage (0-100%). - * @param PercentageValue|null $value Value to set for the salt property. - */ - public function setSalt(?PercentageValue $value): void { + * + * @param PercentageValue|null $value Value to set for the salt property. + */ + public function setSalt(?PercentageValue $value): void + { $this->salt = $value; } /** * Sets the saturatedFat property value. Valeur sous forme de pourcentage (0-100%). - * @param PercentageValue|null $value Value to set for the saturatedFat property. - */ - public function setSaturatedFat(?PercentageValue $value): void { + * + * @param PercentageValue|null $value Value to set for the saturatedFat property. + */ + public function setSaturatedFat(?PercentageValue $value): void + { $this->saturatedFat = $value; } /** * Sets the sugars property value. Valeur sous forme de pourcentage (0-100%). - * @param PercentageValue|null $value Value to set for the sugars property. - */ - public function setSugars(?PercentageValue $value): void { + * + * @param PercentageValue|null $value Value to set for the sugars property. + */ + public function setSugars(?PercentageValue $value): void + { $this->sugars = $value; } - } diff --git a/client/Models/IncoCompoReferenceMacronutrients.php b/client/Models/IncoCompoReferenceMacronutrients.php old mode 100755 new mode 100644 index 97a2cd2..10a5fc5 --- a/client/Models/IncoCompoReferenceMacronutrients.php +++ b/client/Models/IncoCompoReferenceMacronutrients.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 NutrientValue|null $carbohydrates Valeur d'un nutriment avec quantité et précision facultative. - */ + * @var NutrientValue|null Valeur d'un nutriment avec quantité et précision facultative. + */ private ?NutrientValue $carbohydrates = null; - + /** - * @var NutrientValue|null $fat Valeur d'un nutriment avec quantité et précision facultative. - */ + * @var NutrientValue|null Valeur d'un nutriment avec quantité et précision facultative. + */ private ?NutrientValue $fat = null; - + /** - * @var NutrientValue|null $fiber Valeur d'un nutriment avec quantité et précision facultative. - */ + * @var NutrientValue|null Valeur d'un nutriment avec quantité et précision facultative. + */ private ?NutrientValue $fiber = null; - + /** - * @var NutrientValue|null $protein Valeur d'un nutriment avec quantité et précision facultative. - */ + * @var NutrientValue|null Valeur d'un nutriment avec quantité et précision facultative. + */ private ?NutrientValue $protein = null; - + /** - * @var NutrientValue|null $salt Valeur d'un nutriment avec quantité et précision facultative. - */ + * @var NutrientValue|null Valeur d'un nutriment avec quantité et précision facultative. + */ private ?NutrientValue $salt = null; - + /** - * @var NutrientValue|null $saturatedFat Valeur d'un nutriment avec quantité et précision facultative. - */ + * @var NutrientValue|null Valeur d'un nutriment avec quantité et précision facultative. + */ private ?NutrientValue $saturatedFat = null; - + /** - * @var string|null $sodium The sodium property - */ + * @var string|null The sodium property + */ private ?string $sodium = null; - + /** - * @var NutrientValue|null $sugars Valeur d'un nutriment avec quantité et précision facultative. - */ + * @var NutrientValue|null Valeur d'un nutriment avec quantité et précision facultative. + */ private ?NutrientValue $sugars = null; - + /** * Instantiates a new IncoCompoReferenceMacronutrients and sets the default values. - */ - public function __construct() { + */ + 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 IncoCompoReferenceMacronutrients - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoReferenceMacronutrients { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoReferenceMacronutrients + { return new IncoCompoReferenceMacronutrients(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * Gets the carbohydrates property value. Valeur d'un nutriment avec quantité et précision facultative. - * @return NutrientValue|null - */ - public function getCarbohydrates(): ?NutrientValue { + */ + public function getCarbohydrates(): ?NutrientValue + { return $this->carbohydrates; } /** * Gets the fat property value. Valeur d'un nutriment avec quantité et précision facultative. - * @return NutrientValue|null - */ - public function getFat(): ?NutrientValue { + */ + public function getFat(): ?NutrientValue + { return $this->fat; } /** * Gets the fiber property value. Valeur d'un nutriment avec quantité et précision facultative. - * @return NutrientValue|null - */ - public function getFiber(): ?NutrientValue { + */ + public function getFiber(): ?NutrientValue + { return $this->fiber; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'carbohydrates' => fn(ParseNode $n) => $o->setCarbohydrates($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])), - 'fat' => fn(ParseNode $n) => $o->setFat($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])), - 'fiber' => fn(ParseNode $n) => $o->setFiber($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])), - 'protein' => fn(ParseNode $n) => $o->setProtein($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])), - 'salt' => fn(ParseNode $n) => $o->setSalt($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])), - 'saturatedFat' => fn(ParseNode $n) => $o->setSaturatedFat($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])), - 'sodium' => fn(ParseNode $n) => $o->setSodium($n->getStringValue()), - 'sugars' => fn(ParseNode $n) => $o->setSugars($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])), + + return [ + 'carbohydrates' => fn (ParseNode $n) => $o->setCarbohydrates($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])), + 'fat' => fn (ParseNode $n) => $o->setFat($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])), + 'fiber' => fn (ParseNode $n) => $o->setFiber($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])), + 'protein' => fn (ParseNode $n) => $o->setProtein($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])), + 'salt' => fn (ParseNode $n) => $o->setSalt($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])), + 'saturatedFat' => fn (ParseNode $n) => $o->setSaturatedFat($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])), + 'sodium' => fn (ParseNode $n) => $o->setSodium($n->getStringValue()), + 'sugars' => fn (ParseNode $n) => $o->setSugars($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])), ]; } /** * Gets the protein property value. Valeur d'un nutriment avec quantité et précision facultative. - * @return NutrientValue|null - */ - public function getProtein(): ?NutrientValue { + */ + public function getProtein(): ?NutrientValue + { return $this->protein; } /** * Gets the salt property value. Valeur d'un nutriment avec quantité et précision facultative. - * @return NutrientValue|null - */ - public function getSalt(): ?NutrientValue { + */ + public function getSalt(): ?NutrientValue + { return $this->salt; } /** * Gets the saturatedFat property value. Valeur d'un nutriment avec quantité et précision facultative. - * @return NutrientValue|null - */ - public function getSaturatedFat(): ?NutrientValue { + */ + public function getSaturatedFat(): ?NutrientValue + { return $this->saturatedFat; } /** * Gets the sodium property value. The sodium property - * @return string|null - */ - public function getSodium(): ?string { + */ + public function getSodium(): ?string + { return $this->sodium; } /** * Gets the sugars property value. Valeur d'un nutriment avec quantité et précision facultative. - * @return NutrientValue|null - */ - public function getSugars(): ?NutrientValue { + */ + public function getSugars(): ?NutrientValue + { return $this->sugars; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeObjectValue('carbohydrates', $this->getCarbohydrates()); $writer->writeObjectValue('fat', $this->getFat()); $writer->writeObjectValue('fiber', $this->getFiber()); @@ -181,74 +192,91 @@ class IncoCompoReferenceMacronutrients implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the carbohydrates property value. Valeur d'un nutriment avec quantité et précision facultative. - * @param NutrientValue|null $value Value to set for the carbohydrates property. - */ - public function setCarbohydrates(?NutrientValue $value): void { + * + * @param NutrientValue|null $value Value to set for the carbohydrates property. + */ + public function setCarbohydrates(?NutrientValue $value): void + { $this->carbohydrates = $value; } /** * Sets the fat property value. Valeur d'un nutriment avec quantité et précision facultative. - * @param NutrientValue|null $value Value to set for the fat property. - */ - public function setFat(?NutrientValue $value): void { + * + * @param NutrientValue|null $value Value to set for the fat property. + */ + public function setFat(?NutrientValue $value): void + { $this->fat = $value; } /** * Sets the fiber property value. Valeur d'un nutriment avec quantité et précision facultative. - * @param NutrientValue|null $value Value to set for the fiber property. - */ - public function setFiber(?NutrientValue $value): void { + * + * @param NutrientValue|null $value Value to set for the fiber property. + */ + public function setFiber(?NutrientValue $value): void + { $this->fiber = $value; } /** * Sets the protein property value. Valeur d'un nutriment avec quantité et précision facultative. - * @param NutrientValue|null $value Value to set for the protein property. - */ - public function setProtein(?NutrientValue $value): void { + * + * @param NutrientValue|null $value Value to set for the protein property. + */ + public function setProtein(?NutrientValue $value): void + { $this->protein = $value; } /** * Sets the salt property value. Valeur d'un nutriment avec quantité et précision facultative. - * @param NutrientValue|null $value Value to set for the salt property. - */ - public function setSalt(?NutrientValue $value): void { + * + * @param NutrientValue|null $value Value to set for the salt property. + */ + public function setSalt(?NutrientValue $value): void + { $this->salt = $value; } /** * Sets the saturatedFat property value. Valeur d'un nutriment avec quantité et précision facultative. - * @param NutrientValue|null $value Value to set for the saturatedFat property. - */ - public function setSaturatedFat(?NutrientValue $value): void { + * + * @param NutrientValue|null $value Value to set for the saturatedFat property. + */ + public function setSaturatedFat(?NutrientValue $value): void + { $this->saturatedFat = $value; } /** * Sets the sodium property value. The sodium property - * @param string|null $value Value to set for the sodium property. - */ - public function setSodium(?string $value): void { + * + * @param string|null $value Value to set for the sodium property. + */ + public function setSodium(?string $value): void + { $this->sodium = $value; } /** * Sets the sugars property value. Valeur d'un nutriment avec quantité et précision facultative. - * @param NutrientValue|null $value Value to set for the sugars property. - */ - public function setSugars(?NutrientValue $value): void { + * + * @param NutrientValue|null $value Value to set for the sugars property. + */ + public function setSugars(?NutrientValue $value): void + { $this->sugars = $value; } - } diff --git a/client/Models/IncoCompoSpecialCompounds.php b/client/Models/IncoCompoSpecialCompounds.php old mode 100755 new mode 100644 index 0753725..acc9657 --- a/client/Models/IncoCompoSpecialCompounds.php +++ b/client/Models/IncoCompoSpecialCompounds.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 string|null $carnitine Carnitine (mg/100g). - */ + * @var string|null Carnitine (mg/100g). + */ private ?string $carnitine = null; - + /** - * @var string|null $choline Choline (mg/100g). - */ + * @var string|null Choline (mg/100g). + */ private ?string $choline = null; - + /** - * @var string|null $nucleotides Nucléotides (mg/100g). - */ + * @var string|null Nucléotides (mg/100g). + */ private ?string $nucleotides = null; - + /** - * @var string|null $taurine Taurine (mg/100g). - */ + * @var string|null Taurine (mg/100g). + */ private ?string $taurine = null; - + /** * Instantiates a new IncoCompoSpecialCompounds and sets the default values. - */ - public function __construct() { + */ + 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 IncoCompoSpecialCompounds - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoSpecialCompounds { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoSpecialCompounds + { return new IncoCompoSpecialCompounds(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * Gets the carnitine property value. Carnitine (mg/100g). - * @return string|null - */ - public function getCarnitine(): ?string { + */ + public function getCarnitine(): ?string + { return $this->carnitine; } /** * Gets the choline property value. Choline (mg/100g). - * @return string|null - */ - public function getCholine(): ?string { + */ + public function getCholine(): ?string + { return $this->choline; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'carnitine' => fn(ParseNode $n) => $o->setCarnitine($n->getStringValue()), - 'choline' => fn(ParseNode $n) => $o->setCholine($n->getStringValue()), - 'nucleotides' => fn(ParseNode $n) => $o->setNucleotides($n->getStringValue()), - 'taurine' => fn(ParseNode $n) => $o->setTaurine($n->getStringValue()), + + return [ + 'carnitine' => fn (ParseNode $n) => $o->setCarnitine($n->getStringValue()), + 'choline' => fn (ParseNode $n) => $o->setCholine($n->getStringValue()), + 'nucleotides' => fn (ParseNode $n) => $o->setNucleotides($n->getStringValue()), + 'taurine' => fn (ParseNode $n) => $o->setTaurine($n->getStringValue()), ]; } /** * Gets the nucleotides property value. Nucléotides (mg/100g). - * @return string|null - */ - public function getNucleotides(): ?string { + */ + public function getNucleotides(): ?string + { return $this->nucleotides; } /** * Gets the taurine property value. Taurine (mg/100g). - * @return string|null - */ - public function getTaurine(): ?string { + */ + public function getTaurine(): ?string + { return $this->taurine; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeStringValue('carnitine', $this->getCarnitine()); $writer->writeStringValue('choline', $this->getCholine()); $writer->writeStringValue('nucleotides', $this->getNucleotides()); @@ -121,42 +132,51 @@ class IncoCompoSpecialCompounds implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the carnitine property value. Carnitine (mg/100g). - * @param string|null $value Value to set for the carnitine property. - */ - public function setCarnitine(?string $value): void { + * + * @param string|null $value Value to set for the carnitine property. + */ + public function setCarnitine(?string $value): void + { $this->carnitine = $value; } /** * Sets the choline property value. Choline (mg/100g). - * @param string|null $value Value to set for the choline property. - */ - public function setCholine(?string $value): void { + * + * @param string|null $value Value to set for the choline property. + */ + public function setCholine(?string $value): void + { $this->choline = $value; } /** * Sets the nucleotides property value. Nucléotides (mg/100g). - * @param string|null $value Value to set for the nucleotides property. - */ - public function setNucleotides(?string $value): void { + * + * @param string|null $value Value to set for the nucleotides property. + */ + public function setNucleotides(?string $value): void + { $this->nucleotides = $value; } /** * Sets the taurine property value. Taurine (mg/100g). - * @param string|null $value Value to set for the taurine property. - */ - public function setTaurine(?string $value): void { + * + * @param string|null $value Value to set for the taurine property. + */ + public function setTaurine(?string $value): void + { $this->taurine = $value; } - } diff --git a/client/Models/IncoCompoVitamins.php b/client/Models/IncoCompoVitamins.php old mode 100755 new mode 100644 index 5e69002..187d4ab --- a/client/Models/IncoCompoVitamins.php +++ b/client/Models/IncoCompoVitamins.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 string|null $cholecalciferol The cholecalciferol property - */ + * @var string|null The cholecalciferol property + */ private ?string $cholecalciferol = null; - + /** - * @var string|null $niacin The niacin property - */ + * @var string|null The niacin property + */ private ?string $niacin = null; - + /** - * @var string|null $vitaminA The vitaminA property - */ + * @var string|null The vitaminA property + */ private ?string $vitaminA = null; - + /** - * @var string|null $vitaminB12 The vitaminB12 property - */ + * @var string|null The vitaminB12 property + */ private ?string $vitaminB12 = null; - + /** - * @var string|null $vitaminB6 The vitaminB6 property - */ + * @var string|null The vitaminB6 property + */ private ?string $vitaminB6 = null; - + /** - * @var string|null $vitaminC The vitaminC property - */ + * @var string|null The vitaminC property + */ private ?string $vitaminC = null; - + /** - * @var string|null $vitaminD The vitaminD property - */ + * @var string|null The vitaminD property + */ private ?string $vitaminD = null; - + /** - * @var string|null $vitaminE The vitaminE property - */ + * @var string|null The vitaminE property + */ private ?string $vitaminE = null; - + /** - * @var string|null $vitaminK The vitaminK property - */ + * @var string|null The vitaminK property + */ private ?string $vitaminK = null; - + /** * Instantiates a new IncoCompoVitamins and sets the default values. - */ - public function __construct() { + */ + 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 IncoCompoVitamins - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoVitamins { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoVitamins + { return new IncoCompoVitamins(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * Gets the cholecalciferol property value. The cholecalciferol property - * @return string|null - */ - public function getCholecalciferol(): ?string { + */ + public function getCholecalciferol(): ?string + { return $this->cholecalciferol; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'cholecalciferol' => fn(ParseNode $n) => $o->setCholecalciferol($n->getStringValue()), - 'niacin' => fn(ParseNode $n) => $o->setNiacin($n->getStringValue()), - 'vitaminA' => fn(ParseNode $n) => $o->setVitaminA($n->getStringValue()), - 'vitaminB12' => fn(ParseNode $n) => $o->setVitaminB12($n->getStringValue()), - 'vitaminB6' => fn(ParseNode $n) => $o->setVitaminB6($n->getStringValue()), - 'vitaminC' => fn(ParseNode $n) => $o->setVitaminC($n->getStringValue()), - 'vitaminD' => fn(ParseNode $n) => $o->setVitaminD($n->getStringValue()), - 'vitaminE' => fn(ParseNode $n) => $o->setVitaminE($n->getStringValue()), - 'vitaminK' => fn(ParseNode $n) => $o->setVitaminK($n->getStringValue()), + + return [ + 'cholecalciferol' => fn (ParseNode $n) => $o->setCholecalciferol($n->getStringValue()), + 'niacin' => fn (ParseNode $n) => $o->setNiacin($n->getStringValue()), + 'vitaminA' => fn (ParseNode $n) => $o->setVitaminA($n->getStringValue()), + 'vitaminB12' => fn (ParseNode $n) => $o->setVitaminB12($n->getStringValue()), + 'vitaminB6' => fn (ParseNode $n) => $o->setVitaminB6($n->getStringValue()), + 'vitaminC' => fn (ParseNode $n) => $o->setVitaminC($n->getStringValue()), + 'vitaminD' => fn (ParseNode $n) => $o->setVitaminD($n->getStringValue()), + 'vitaminE' => fn (ParseNode $n) => $o->setVitaminE($n->getStringValue()), + 'vitaminK' => fn (ParseNode $n) => $o->setVitaminK($n->getStringValue()), ]; } /** * Gets the niacin property value. The niacin property - * @return string|null - */ - public function getNiacin(): ?string { + */ + public function getNiacin(): ?string + { return $this->niacin; } /** * Gets the vitaminA property value. The vitaminA property - * @return string|null - */ - public function getVitaminA(): ?string { + */ + public function getVitaminA(): ?string + { return $this->vitaminA; } /** * Gets the vitaminB12 property value. The vitaminB12 property - * @return string|null - */ - public function getVitaminB12(): ?string { + */ + public function getVitaminB12(): ?string + { return $this->vitaminB12; } /** * Gets the vitaminB6 property value. The vitaminB6 property - * @return string|null - */ - public function getVitaminB6(): ?string { + */ + public function getVitaminB6(): ?string + { return $this->vitaminB6; } /** * Gets the vitaminC property value. The vitaminC property - * @return string|null - */ - public function getVitaminC(): ?string { + */ + public function getVitaminC(): ?string + { return $this->vitaminC; } /** * Gets the vitaminD property value. The vitaminD property - * @return string|null - */ - public function getVitaminD(): ?string { + */ + public function getVitaminD(): ?string + { return $this->vitaminD; } /** * Gets the vitaminE property value. The vitaminE property - * @return string|null - */ - public function getVitaminE(): ?string { + */ + public function getVitaminE(): ?string + { return $this->vitaminE; } /** * Gets the vitaminK property value. The vitaminK property - * @return string|null - */ - public function getVitaminK(): ?string { + */ + public function getVitaminK(): ?string + { return $this->vitaminK; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeStringValue('cholecalciferol', $this->getCholecalciferol()); $writer->writeStringValue('niacin', $this->getNiacin()); $writer->writeStringValue('vitaminA', $this->getVitaminA()); @@ -196,82 +207,101 @@ class IncoCompoVitamins implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the cholecalciferol property value. The cholecalciferol property - * @param string|null $value Value to set for the cholecalciferol property. - */ - public function setCholecalciferol(?string $value): void { + * + * @param string|null $value Value to set for the cholecalciferol property. + */ + public function setCholecalciferol(?string $value): void + { $this->cholecalciferol = $value; } /** * Sets the niacin property value. The niacin property - * @param string|null $value Value to set for the niacin property. - */ - public function setNiacin(?string $value): void { + * + * @param string|null $value Value to set for the niacin property. + */ + public function setNiacin(?string $value): void + { $this->niacin = $value; } /** * Sets the vitaminA property value. The vitaminA property - * @param string|null $value Value to set for the vitaminA property. - */ - public function setVitaminA(?string $value): void { + * + * @param string|null $value Value to set for the vitaminA property. + */ + public function setVitaminA(?string $value): void + { $this->vitaminA = $value; } /** * Sets the vitaminB12 property value. The vitaminB12 property - * @param string|null $value Value to set for the vitaminB12 property. - */ - public function setVitaminB12(?string $value): void { + * + * @param string|null $value Value to set for the vitaminB12 property. + */ + public function setVitaminB12(?string $value): void + { $this->vitaminB12 = $value; } /** * Sets the vitaminB6 property value. The vitaminB6 property - * @param string|null $value Value to set for the vitaminB6 property. - */ - public function setVitaminB6(?string $value): void { + * + * @param string|null $value Value to set for the vitaminB6 property. + */ + public function setVitaminB6(?string $value): void + { $this->vitaminB6 = $value; } /** * Sets the vitaminC property value. The vitaminC property - * @param string|null $value Value to set for the vitaminC property. - */ - public function setVitaminC(?string $value): void { + * + * @param string|null $value Value to set for the vitaminC property. + */ + public function setVitaminC(?string $value): void + { $this->vitaminC = $value; } /** * Sets the vitaminD property value. The vitaminD property - * @param string|null $value Value to set for the vitaminD property. - */ - public function setVitaminD(?string $value): void { + * + * @param string|null $value Value to set for the vitaminD property. + */ + public function setVitaminD(?string $value): void + { $this->vitaminD = $value; } /** * Sets the vitaminE property value. The vitaminE property - * @param string|null $value Value to set for the vitaminE property. - */ - public function setVitaminE(?string $value): void { + * + * @param string|null $value Value to set for the vitaminE property. + */ + public function setVitaminE(?string $value): void + { $this->vitaminE = $value; } /** * Sets the vitaminK property value. The vitaminK property - * @param string|null $value Value to set for the vitaminK property. - */ - public function setVitaminK(?string $value): void { + * + * @param string|null $value Value to set for the vitaminK property. + */ + public function setVitaminK(?string $value): void + { $this->vitaminK = $value; } - } diff --git a/client/Models/IncoCompositionIdentification.php b/client/Models/IncoCompositionIdentification.php old mode 100755 new mode 100644 index 7689262..da655cf --- a/client/Models/IncoCompositionIdentification.php +++ b/client/Models/IncoCompositionIdentification.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 string|null $name The name property - */ + * @var string|null The name property + */ private ?string $name = null; - + /** - * @var string|null $number The number property - */ + * @var string|null The number property + */ private ?string $number = null; - + /** - * @var string|null $source The source property - */ + * @var string|null The source property + */ private ?string $source = null; - + /** * Instantiates a new IncoCompositionIdentification and sets the default values. - */ - public function __construct() { + */ + 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 IncoCompositionIdentification - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompositionIdentification { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompositionIdentification + { return new IncoCompositionIdentification(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()), - 'number' => fn(ParseNode $n) => $o->setNumber($n->getStringValue()), - 'source' => fn(ParseNode $n) => $o->setSource($n->getStringValue()), + + return [ + 'name' => fn (ParseNode $n) => $o->setName($n->getStringValue()), + 'number' => fn (ParseNode $n) => $o->setNumber($n->getStringValue()), + 'source' => fn (ParseNode $n) => $o->setSource($n->getStringValue()), ]; } /** * Gets the name property value. The name property - * @return string|null - */ - public function getName(): ?string { + */ + public function getName(): ?string + { return $this->name; } /** * Gets the number property value. The number property - * @return string|null - */ - public function getNumber(): ?string { + */ + public function getNumber(): ?string + { return $this->number; } /** * Gets the source property value. The source property - * @return string|null - */ - public function getSource(): ?string { + */ + public function getSource(): ?string + { return $this->source; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeStringValue('name', $this->getName()); $writer->writeStringValue('number', $this->getNumber()); $writer->writeStringValue('source', $this->getSource()); @@ -106,34 +117,41 @@ class IncoCompositionIdentification implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $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 { + * + * @param string|null $value Value to set for the name property. + */ + public function setName(?string $value): void + { $this->name = $value; } /** * Sets the number property value. The number property - * @param string|null $value Value to set for the number property. - */ - public function setNumber(?string $value): void { + * + * @param string|null $value Value to set for the number property. + */ + public function setNumber(?string $value): void + { $this->number = $value; } /** * Sets the source property value. The source property - * @param string|null $value Value to set for the source property. - */ - public function setSource(?string $value): void { + * + * @param string|null $value Value to set for the source property. + */ + public function setSource(?string $value): void + { $this->source = $value; } - } diff --git a/client/Models/IncoIngredients.php b/client/Models/IncoIngredients.php old mode 100755 new mode 100644 index d967a12..944c311 --- a/client/Models/IncoIngredients.php +++ b/client/Models/IncoIngredients.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ private ?array $additionalData = null; - + /** * Instantiates a new IncoIngredients and sets the default values. - */ - public function __construct() { + */ + 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 IncoIngredients - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoIngredients { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoIngredients + { return new IncoIngredients(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ + + return [ ]; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } - } diff --git a/client/Models/IncoItemResponse.php b/client/Models/IncoItemResponse.php old mode 100755 new mode 100644 index 8e08a25..65b0b1b --- a/client/Models/IncoItemResponse.php +++ b/client/Models/IncoItemResponse.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 Inco|null $incoSheet Fiche produit INCO complète. - */ + * @var Inco|null Fiche produit INCO complète. + */ private ?Inco $incoSheet = null; - + /** * Instantiates a new IncoItemResponse and sets the default values. - */ - public function __construct() { + */ + 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 IncoItemResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoItemResponse { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoItemResponse + { return new IncoItemResponse(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'incoSheet' => fn(ParseNode $n) => $o->setIncoSheet($n->getObjectValue([Inco::class, 'createFromDiscriminatorValue'])), + + return [ + 'incoSheet' => fn (ParseNode $n) => $o->setIncoSheet($n->getObjectValue([Inco::class, 'createFromDiscriminatorValue'])), ]; } /** * Gets the incoSheet property value. Fiche produit INCO complète. - * @return Inco|null - */ - public function getIncoSheet(): ?Inco { + */ + public function getIncoSheet(): ?Inco + { return $this->incoSheet; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeObjectValue('incoSheet', $this->getIncoSheet()); $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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the incoSheet property value. Fiche produit INCO complète. - * @param Inco|null $value Value to set for the incoSheet property. - */ - public function setIncoSheet(?Inco $value): void { + * + * @param Inco|null $value Value to set for the incoSheet property. + */ + public function setIncoSheet(?Inco $value): void + { $this->incoSheet = $value; } - } diff --git a/client/Models/IncoListResponse.php b/client/Models/IncoListResponse.php old mode 100755 new mode 100644 index 3c67d3f..410db34 --- a/client/Models/IncoListResponse.php +++ b/client/Models/IncoListResponse.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 array|null $incoSheets Collection des fiches INCO (format complet ou court). - */ + * @var array|null Collection des fiches INCO (format complet ou court). + */ private ?array $incoSheets = null; - + /** - * @var PaginationMeta|null $pagination Métadonnées de pagination. - */ + * @var PaginationMeta|null Métadonnées de pagination. + */ private ?PaginationMeta $pagination = null; - + /** * Instantiates a new IncoListResponse and sets the default values. - */ - public function __construct() { + */ + 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 IncoListResponse - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoListResponse { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoListResponse + { return new IncoListResponse(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'incoSheets' => fn(ParseNode $n) => $o->setIncoSheets($n->getCollectionOfObjectValues([IncoListResponse_incoSheets::class, 'createFromDiscriminatorValue'])), - 'pagination' => fn(ParseNode $n) => $o->setPagination($n->getObjectValue([PaginationMeta::class, 'createFromDiscriminatorValue'])), + + return [ + 'incoSheets' => fn (ParseNode $n) => $o->setIncoSheets($n->getCollectionOfObjectValues([IncoListResponse_incoSheets::class, 'createFromDiscriminatorValue'])), + 'pagination' => fn (ParseNode $n) => $o->setPagination($n->getObjectValue([PaginationMeta::class, 'createFromDiscriminatorValue'])), ]; } /** * Gets the incoSheets property value. Collection des fiches INCO (format complet ou court). + * * @return array|null - */ - public function getIncoSheets(): ?array { + */ + public function getIncoSheets(): ?array + { return $this->incoSheets; } /** * Gets the pagination property value. Métadonnées de pagination. - * @return PaginationMeta|null - */ - public function getPagination(): ?PaginationMeta { + */ + public function getPagination(): ?PaginationMeta + { return $this->pagination; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeCollectionOfObjectValues('incoSheets', $this->getIncoSheets()); $writer->writeObjectValue('pagination', $this->getPagination()); $writer->writeAdditionalData($this->getAdditionalData()); @@ -91,26 +104,31 @@ class IncoListResponse implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the incoSheets property value. Collection des fiches INCO (format complet ou court). - * @param array|null $value Value to set for the incoSheets property. - */ - public function setIncoSheets(?array $value): void { + * + * @param array|null $value Value to set for the incoSheets property. + */ + public function setIncoSheets(?array $value): void + { $this->incoSheets = $value; } /** * Sets the pagination property value. Métadonnées de pagination. - * @param PaginationMeta|null $value Value to set for the pagination property. - */ - public function setPagination(?PaginationMeta $value): void { + * + * @param PaginationMeta|null $value Value to set for the pagination property. + */ + public function setPagination(?PaginationMeta $value): void + { $this->pagination = $value; } - } diff --git a/client/Models/IncoListResponse_incoSheets.php b/client/Models/IncoListResponse_incoSheets.php old mode 100755 new mode 100644 index 526d47a..b81e05a --- a/client/Models/IncoListResponse_incoSheets.php +++ b/client/Models/IncoListResponse_incoSheets.php @@ -1,5 +1,7 @@ setInco(new Inco()); $result->setIncoShort(new IncoShort()); + return $result; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { if ($this->getInco() !== null || $this->getIncoShort() !== null) { return ParseNodeHelper::mergeDeserializersForIntersectionWrapper($this->getInco(), $this->getIncoShort()); } + return []; } /** * Gets the Inco property value. Composed type representation for type Inco - * @return Inco|null - */ - public function getInco(): ?Inco { + */ + public function getInco(): ?Inco + { return $this->inco; } /** * Gets the IncoShort property value. Composed type representation for type IncoShort - * @return IncoShort|null - */ - public function getIncoShort(): ?IncoShort { + */ + public function getIncoShort(): ?IncoShort + { return $this->incoShort; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeObjectValue(null, $this->getInco(), $this->getIncoShort()); } /** * Sets the Inco property value. Composed type representation for type Inco - * @param Inco|null $value Value to set for the Inco property. - */ - public function setInco(?Inco $value): void { + * + * @param Inco|null $value Value to set for the Inco property. + */ + public function setInco(?Inco $value): void + { $this->inco = $value; } /** * Sets the IncoShort property value. Composed type representation for type IncoShort - * @param IncoShort|null $value Value to set for the IncoShort property. - */ - public function setIncoShort(?IncoShort $value): void { + * + * @param IncoShort|null $value Value to set for the IncoShort property. + */ + public function setIncoShort(?IncoShort $value): void + { $this->incoShort = $value; } - } diff --git a/client/Models/IncoNutriscore.php b/client/Models/IncoNutriscore.php old mode 100755 new mode 100644 index 8827eb2..cce44f0 --- a/client/Models/IncoNutriscore.php +++ b/client/Models/IncoNutriscore.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 IncoNutriscore_grade|null $grade The grade property - */ + * @var IncoNutriscore_grade|null The grade property + */ private ?IncoNutriscore_grade $grade = null; - + /** * Instantiates a new IncoNutriscore and sets the default values. - */ - public function __construct() { + */ + 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 IncoNutriscore - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoNutriscore { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoNutriscore + { return new IncoNutriscore(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'grade' => fn(ParseNode $n) => $o->setGrade($n->getEnumValue(IncoNutriscore_grade::class)), + + return [ + 'grade' => fn (ParseNode $n) => $o->setGrade($n->getEnumValue(IncoNutriscore_grade::class)), ]; } /** * Gets the grade property value. The grade property - * @return IncoNutriscore_grade|null - */ - public function getGrade(): ?IncoNutriscore_grade { + */ + public function getGrade(): ?IncoNutriscore_grade + { return $this->grade; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeEnumValue('grade', $this->getGrade()); $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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the grade property value. The grade property - * @param IncoNutriscore_grade|null $value Value to set for the grade property. - */ - public function setGrade(?IncoNutriscore_grade $value): void { + * + * @param IncoNutriscore_grade|null $value Value to set for the grade property. + */ + public function setGrade(?IncoNutriscore_grade $value): void + { $this->grade = $value; } - } diff --git a/client/Models/IncoNutriscore_grade.php b/client/Models/IncoNutriscore_grade.php old mode 100755 new mode 100644 index d543b26..66f1abd --- a/client/Models/IncoNutriscore_grade.php +++ b/client/Models/IncoNutriscore_grade.php @@ -1,13 +1,20 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 bool|null $approximative Indique si la portion est approximative. - */ + * @var bool|null Indique si la portion est approximative. + */ private ?bool $approximative = null; - + /** - * @var int|null $highPart Valeur maximale. - */ + * @var int|null Valeur maximale. + */ private ?int $highPart = null; - + /** - * @var int|null $lowPart Valeur minimale ou exacte (en centièmes ou grammes). - */ + * @var int|null Valeur minimale ou exacte (en centièmes ou grammes). + */ private ?int $lowPart = null; - + /** * Instantiates a new IncoPortionAmount and sets the default values. - */ - public function __construct() { + */ + 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 IncoPortionAmount - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoPortionAmount { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoPortionAmount + { return new IncoPortionAmount(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * Gets the approximative property value. Indique si la portion est approximative. - * @return bool|null - */ - public function getApproximative(): ?bool { + */ + public function getApproximative(): ?bool + { return $this->approximative; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'approximative' => fn(ParseNode $n) => $o->setApproximative($n->getBooleanValue()), - 'highPart' => fn(ParseNode $n) => $o->setHighPart($n->getIntegerValue()), - 'lowPart' => fn(ParseNode $n) => $o->setLowPart($n->getIntegerValue()), + + return [ + 'approximative' => fn (ParseNode $n) => $o->setApproximative($n->getBooleanValue()), + 'highPart' => fn (ParseNode $n) => $o->setHighPart($n->getIntegerValue()), + 'lowPart' => fn (ParseNode $n) => $o->setLowPart($n->getIntegerValue()), ]; } /** * Gets the highPart property value. Valeur maximale. - * @return int|null - */ - public function getHighPart(): ?int { + */ + public function getHighPart(): ?int + { return $this->highPart; } /** * Gets the lowPart property value. Valeur minimale ou exacte (en centièmes ou grammes). - * @return int|null - */ - public function getLowPart(): ?int { + */ + public function getLowPart(): ?int + { return $this->lowPart; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeBooleanValue('approximative', $this->getApproximative()); $writer->writeIntegerValue('highPart', $this->getHighPart()); $writer->writeIntegerValue('lowPart', $this->getLowPart()); @@ -106,34 +117,41 @@ class IncoPortionAmount implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the approximative property value. Indique si la portion est approximative. - * @param bool|null $value Value to set for the approximative property. - */ - public function setApproximative(?bool $value): void { + * + * @param bool|null $value Value to set for the approximative property. + */ + public function setApproximative(?bool $value): void + { $this->approximative = $value; } /** * Sets the highPart property value. Valeur maximale. - * @param int|null $value Value to set for the highPart property. - */ - public function setHighPart(?int $value): void { + * + * @param int|null $value Value to set for the highPart property. + */ + public function setHighPart(?int $value): void + { $this->highPart = $value; } /** * Sets the lowPart property value. Valeur minimale ou exacte (en centièmes ou grammes). - * @param int|null $value Value to set for the lowPart property. - */ - public function setLowPart(?int $value): void { + * + * @param int|null $value Value to set for the lowPart property. + */ + public function setLowPart(?int $value): void + { $this->lowPart = $value; } - } diff --git a/client/Models/IncoShort.php b/client/Models/IncoShort.php old mode 100755 new mode 100644 index f165328..ba5f322 --- a/client/Models/IncoShort.php +++ b/client/Models/IncoShort.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 $createdAt The createdAt property - */ + * @var DateTime|null The createdAt property + */ private ?DateTime $createdAt = null; - + /** - * @var string|null $incoId The incoId property - */ + * @var string|null The description property + */ + private ?string $description = null; + + /** + * @var string|null The incoId property + */ private ?string $incoId = null; - + /** - * @var string|null $label The label property - */ + * @var string|null The label property + */ private ?string $label = null; - + /** - * @var string|null $name The name property - */ + * @var string|null The name property + */ private ?string $name = null; - + /** - * @var DateTime|null $updatedAt The updatedAt property - */ + * @var DateTime|null The updatedAt property + */ private ?DateTime $updatedAt = null; - + /** * Instantiates a new IncoShort and sets the default values. - */ - public function __construct() { + */ + 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 IncoShort - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoShort { + * + * @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|null - */ - public function getAdditionalData(): ?array { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * Gets the createdAt property value. The createdAt property - * @return DateTime|null - */ - public function getCreatedAt(): ?DateTime { + */ + 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 - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'createdAt' => fn(ParseNode $n) => $o->setCreatedAt($n->getDateTimeValue()), - '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()), + + 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 - * @return string|null - */ - public function getIncoId(): ?string { + */ + public function getIncoId(): ?string + { return $this->incoId; } /** * Gets the label property value. The label property - * @return string|null - */ - public function getLabel(): ?string { + */ + public function getLabel(): ?string + { return $this->label; } /** * Gets the name property value. The name property - * @return string|null - */ - public function getName(): ?string { + */ + public function getName(): ?string + { return $this->name; } /** * Gets the updatedAt property value. The updatedAt property - * @return DateTime|null - */ - public function getUpdatedAt(): ?DateTime { + */ + 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 { + * + * @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()); @@ -137,50 +163,71 @@ class IncoShort implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $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 { + * + * @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 { + * + * @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 { + * + * @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 { + * + * @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 { + * + * @param DateTime|null $value Value to set for the updatedAt property. + */ + public function setUpdatedAt(?DateTime $value): void + { $this->updatedAt = $value; } - } diff --git a/client/Models/IncoStorageCondition.php b/client/Models/IncoStorageCondition.php old mode 100755 new mode 100644 index 5c897f3..bded218 --- a/client/Models/IncoStorageCondition.php +++ b/client/Models/IncoStorageCondition.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 string|null $instructions The instructions property - */ + * @var string|null The instructions property + */ private ?string $instructions = null; - + /** * Instantiates a new IncoStorageCondition and sets the default values. - */ - public function __construct() { + */ + 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 IncoStorageCondition - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoStorageCondition { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoStorageCondition + { return new IncoStorageCondition(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'instructions' => fn(ParseNode $n) => $o->setInstructions($n->getStringValue()), + + return [ + 'instructions' => fn (ParseNode $n) => $o->setInstructions($n->getStringValue()), ]; } /** * Gets the instructions property value. The instructions property - * @return string|null - */ - public function getInstructions(): ?string { + */ + public function getInstructions(): ?string + { return $this->instructions; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeStringValue('instructions', $this->getInstructions()); $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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the instructions property value. The instructions property - * @param string|null $value Value to set for the instructions property. - */ - public function setInstructions(?string $value): void { + * + * @param string|null $value Value to set for the instructions property. + */ + public function setInstructions(?string $value): void + { $this->instructions = $value; } - } diff --git a/client/Models/IncoWeight.php b/client/Models/IncoWeight.php old mode 100755 new mode 100644 index ec9c692..6331a33 --- a/client/Models/IncoWeight.php +++ b/client/Models/IncoWeight.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 int|null $grossWeight Poids brut UVC (g). - */ + * @var int|null Poids brut UVC (g). + */ private ?int $grossWeight = null; - + /** - * @var int|null $netWeight Poids net UVC (g). - */ + * @var int|null Poids net UVC (g). + */ private ?int $netWeight = null; - + /** - * @var int|null $theoreticalAverage Moyenne théorique du poids (g). - */ + * @var int|null Moyenne théorique du poids (g). + */ private ?int $theoreticalAverage = null; - + /** * Instantiates a new IncoWeight and sets the default values. - */ - public function __construct() { + */ + 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 IncoWeight - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoWeight { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoWeight + { return new IncoWeight(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'grossWeight' => fn(ParseNode $n) => $o->setGrossWeight($n->getIntegerValue()), - 'netWeight' => fn(ParseNode $n) => $o->setNetWeight($n->getIntegerValue()), - 'theoreticalAverage' => fn(ParseNode $n) => $o->setTheoreticalAverage($n->getIntegerValue()), + + return [ + 'grossWeight' => fn (ParseNode $n) => $o->setGrossWeight($n->getIntegerValue()), + 'netWeight' => fn (ParseNode $n) => $o->setNetWeight($n->getIntegerValue()), + 'theoreticalAverage' => fn (ParseNode $n) => $o->setTheoreticalAverage($n->getIntegerValue()), ]; } /** * Gets the grossWeight property value. Poids brut UVC (g). - * @return int|null - */ - public function getGrossWeight(): ?int { + */ + public function getGrossWeight(): ?int + { return $this->grossWeight; } /** * Gets the netWeight property value. Poids net UVC (g). - * @return int|null - */ - public function getNetWeight(): ?int { + */ + public function getNetWeight(): ?int + { return $this->netWeight; } /** * Gets the theoreticalAverage property value. Moyenne théorique du poids (g). - * @return int|null - */ - public function getTheoreticalAverage(): ?int { + */ + public function getTheoreticalAverage(): ?int + { return $this->theoreticalAverage; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeIntegerValue('grossWeight', $this->getGrossWeight()); $writer->writeIntegerValue('netWeight', $this->getNetWeight()); $writer->writeIntegerValue('theoreticalAverage', $this->getTheoreticalAverage()); @@ -106,34 +117,41 @@ class IncoWeight implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the grossWeight property value. Poids brut UVC (g). - * @param int|null $value Value to set for the grossWeight property. - */ - public function setGrossWeight(?int $value): void { + * + * @param int|null $value Value to set for the grossWeight property. + */ + public function setGrossWeight(?int $value): void + { $this->grossWeight = $value; } /** * Sets the netWeight property value. Poids net UVC (g). - * @param int|null $value Value to set for the netWeight property. - */ - public function setNetWeight(?int $value): void { + * + * @param int|null $value Value to set for the netWeight property. + */ + public function setNetWeight(?int $value): void + { $this->netWeight = $value; } /** * Sets the theoreticalAverage property value. Moyenne théorique du poids (g). - * @param int|null $value Value to set for the theoreticalAverage property. - */ - public function setTheoreticalAverage(?int $value): void { + * + * @param int|null $value Value to set for the theoreticalAverage property. + */ + public function setTheoreticalAverage(?int $value): void + { $this->theoreticalAverage = $value; } - } diff --git a/client/Models/Inco_nutriscore.php b/client/Models/Inco_nutriscore.php deleted file mode 100755 index 2128983..0000000 --- a/client/Models/Inco_nutriscore.php +++ /dev/null @@ -1,92 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - if ($this->getIncoNutriscoreMember1() !== null) { - return $this->getIncoNutriscoreMember1()->getFieldDeserializers(); - } else if ($this->getIncoNutriscore() !== null) { - return $this->getIncoNutriscore()->getFieldDeserializers(); - } - return []; - } - - /** - * Gets the IncoNutriscore property value. Composed type representation for type IncoNutriscore - * @return IncoNutriscore|null - */ - public function getIncoNutriscore(): ?IncoNutriscore { - return $this->incoNutriscore; - } - - /** - * Gets the Inco_nutriscoreMember1 property value. Composed type representation for type Inco_nutriscoreMember1 - * @return Inco_nutriscoreMember1|null - */ - public function getIncoNutriscoreMember1(): ?Inco_nutriscoreMember1 { - return $this->inco_nutriscoreMember1; - } - - /** - * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { - if ($this->getIncoNutriscoreMember1() !== null) { - $writer->writeObjectValue(null, $this->getIncoNutriscoreMember1()); - } else if ($this->getIncoNutriscore() !== null) { - $writer->writeObjectValue(null, $this->getIncoNutriscore()); - } - } - - /** - * Sets the IncoNutriscore property value. Composed type representation for type IncoNutriscore - * @param IncoNutriscore|null $value Value to set for the IncoNutriscore property. - */ - public function setIncoNutriscore(?IncoNutriscore $value): void { - $this->incoNutriscore = $value; - } - - /** - * Sets the Inco_nutriscoreMember1 property value. Composed type representation for type Inco_nutriscoreMember1 - * @param Inco_nutriscoreMember1|null $value Value to set for the Inco_nutriscoreMember1 property. - */ - public function setIncoNutriscoreMember1(?Inco_nutriscoreMember1 $value): void { - $this->inco_nutriscoreMember1 = $value; - } - -} diff --git a/client/Models/Inco_nutriscoreMember1.php b/client/Models/Inco_nutriscoreMember1.php deleted file mode 100755 index 4966965..0000000 --- a/client/Models/Inco_nutriscoreMember1.php +++ /dev/null @@ -1,67 +0,0 @@ -|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; - - /** - * Instantiates a new Inco_nutriscoreMember1 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 Inco_nutriscoreMember1 - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): Inco_nutriscoreMember1 { - return new Inco_nutriscoreMember1(); - } - - /** - * 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; - } - - /** - * The deserialization information for the current model - * @return array - */ - public function getFieldDeserializers(): array { - $o = $this; - return [ - ]; - } - - /** - * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { - $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; - } - -} diff --git a/client/Models/Inco_portions.php b/client/Models/Inco_portions.php deleted file mode 100755 index 4ef5776..0000000 --- a/client/Models/Inco_portions.php +++ /dev/null @@ -1,92 +0,0 @@ - - */ - 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; - } - -} diff --git a/client/Models/Inco_portionsMember1.php b/client/Models/Inco_portionsMember1.php deleted file mode 100755 index 21a3b26..0000000 --- a/client/Models/Inco_portionsMember1.php +++ /dev/null @@ -1,67 +0,0 @@ -|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; - - /** - * Instantiates a new Inco_portionsMember1 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 Inco_portionsMember1 - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): Inco_portionsMember1 { - return new Inco_portionsMember1(); - } - - /** - * 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; - } - - /** - * The deserialization information for the current model - * @return array - */ - public function getFieldDeserializers(): array { - $o = $this; - return [ - ]; - } - - /** - * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { - $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; - } - -} diff --git a/client/Models/Inco_storageCondition.php b/client/Models/Inco_storageCondition.php deleted file mode 100755 index 98061d6..0000000 --- a/client/Models/Inco_storageCondition.php +++ /dev/null @@ -1,92 +0,0 @@ - - */ - 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; - } - -} diff --git a/client/Models/Inco_storageConditionMember1.php b/client/Models/Inco_storageConditionMember1.php deleted file mode 100755 index a91d28f..0000000 --- a/client/Models/Inco_storageConditionMember1.php +++ /dev/null @@ -1,67 +0,0 @@ -|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; - - /** - * Instantiates a new Inco_storageConditionMember1 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 Inco_storageConditionMember1 - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): Inco_storageConditionMember1 { - return new Inco_storageConditionMember1(); - } - - /** - * 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; - } - - /** - * The deserialization information for the current model - * @return array - */ - public function getFieldDeserializers(): array { - $o = $this; - return [ - ]; - } - - /** - * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { - $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; - } - -} diff --git a/client/Models/Inco_weight.php b/client/Models/Inco_weight.php deleted file mode 100755 index 81554c0..0000000 --- a/client/Models/Inco_weight.php +++ /dev/null @@ -1,92 +0,0 @@ - - */ - public function getFieldDeserializers(): array { - if ($this->getIncoWeightMember1() !== null) { - return $this->getIncoWeightMember1()->getFieldDeserializers(); - } else if ($this->getIncoWeight() !== null) { - return $this->getIncoWeight()->getFieldDeserializers(); - } - return []; - } - - /** - * Gets the IncoWeight property value. Composed type representation for type IncoWeight - * @return IncoWeight|null - */ - public function getIncoWeight(): ?IncoWeight { - return $this->incoWeight; - } - - /** - * Gets the Inco_weightMember1 property value. Composed type representation for type Inco_weightMember1 - * @return Inco_weightMember1|null - */ - public function getIncoWeightMember1(): ?Inco_weightMember1 { - return $this->inco_weightMember1; - } - - /** - * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { - if ($this->getIncoWeightMember1() !== null) { - $writer->writeObjectValue(null, $this->getIncoWeightMember1()); - } else if ($this->getIncoWeight() !== null) { - $writer->writeObjectValue(null, $this->getIncoWeight()); - } - } - - /** - * Sets the IncoWeight property value. Composed type representation for type IncoWeight - * @param IncoWeight|null $value Value to set for the IncoWeight property. - */ - public function setIncoWeight(?IncoWeight $value): void { - $this->incoWeight = $value; - } - - /** - * Sets the Inco_weightMember1 property value. Composed type representation for type Inco_weightMember1 - * @param Inco_weightMember1|null $value Value to set for the Inco_weightMember1 property. - */ - public function setIncoWeightMember1(?Inco_weightMember1 $value): void { - $this->inco_weightMember1 = $value; - } - -} diff --git a/client/Models/Inco_weightMember1.php b/client/Models/Inco_weightMember1.php deleted file mode 100755 index c145649..0000000 --- a/client/Models/Inco_weightMember1.php +++ /dev/null @@ -1,67 +0,0 @@ -|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; - - /** - * Instantiates a new Inco_weightMember1 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 Inco_weightMember1 - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): Inco_weightMember1 { - return new Inco_weightMember1(); - } - - /** - * 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; - } - - /** - * The deserialization information for the current model - * @return array - */ - public function getFieldDeserializers(): array { - $o = $this; - return [ - ]; - } - - /** - * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { - $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; - } - -} diff --git a/client/Models/InvalidParamItem.php b/client/Models/InvalidParamItem.php old mode 100755 new mode 100644 index c1b1134..10e8b13 --- a/client/Models/InvalidParamItem.php +++ b/client/Models/InvalidParamItem.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 string|null $name Nom du champ ou paramètre invalide. - */ + * @var string|null Nom du champ ou paramètre invalide. + */ private ?string $name = null; - + /** - * @var string|null $reason Raison du rejet de validation. - */ + * @var string|null Raison du rejet de validation. + */ private ?string $reason = null; - + /** * Instantiates a new InvalidParamItem and sets the default values. - */ - public function __construct() { + */ + 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 InvalidParamItem - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): InvalidParamItem { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): InvalidParamItem + { return new InvalidParamItem(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()), - 'reason' => fn(ParseNode $n) => $o->setReason($n->getStringValue()), + + return [ + 'name' => fn (ParseNode $n) => $o->setName($n->getStringValue()), + 'reason' => fn (ParseNode $n) => $o->setReason($n->getStringValue()), ]; } /** * Gets the name property value. Nom du champ ou paramètre invalide. - * @return string|null - */ - public function getName(): ?string { + */ + public function getName(): ?string + { return $this->name; } /** * Gets the reason property value. Raison du rejet de validation. - * @return string|null - */ - public function getReason(): ?string { + */ + public function getReason(): ?string + { return $this->reason; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeStringValue('name', $this->getName()); $writer->writeStringValue('reason', $this->getReason()); $writer->writeAdditionalData($this->getAdditionalData()); @@ -91,26 +102,31 @@ class InvalidParamItem implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the name property value. Nom du champ ou paramètre invalide. - * @param string|null $value Value to set for the name property. - */ - public function setName(?string $value): void { + * + * @param string|null $value Value to set for the name property. + */ + public function setName(?string $value): void + { $this->name = $value; } /** * Sets the reason property value. Raison du rejet de validation. - * @param string|null $value Value to set for the reason property. - */ - public function setReason(?string $value): void { + * + * @param string|null $value Value to set for the reason property. + */ + public function setReason(?string $value): void + { $this->reason = $value; } - } diff --git a/client/Models/NutrientValue.php b/client/Models/NutrientValue.php old mode 100755 new mode 100644 index 922fd79..8131718 --- a/client/Models/NutrientValue.php +++ b/client/Models/NutrientValue.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 string|null $amount The amount property - */ + * @var string|null The amount property + */ private ?string $amount = null; - + /** - * @var string|null $precision The precision property - */ + * @var string|null The precision property + */ private ?string $precision = null; - + /** * Instantiates a new NutrientValue and sets the default values. - */ - public function __construct() { + */ + 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 NutrientValue - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): NutrientValue { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): NutrientValue + { return new NutrientValue(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * Gets the amount property value. The amount property - * @return string|null - */ - public function getAmount(): ?string { + */ + public function getAmount(): ?string + { return $this->amount; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'amount' => fn(ParseNode $n) => $o->setAmount($n->getStringValue()), - 'precision' => fn(ParseNode $n) => $o->setPrecision($n->getStringValue()), + + return [ + 'amount' => fn (ParseNode $n) => $o->setAmount($n->getStringValue()), + 'precision' => fn (ParseNode $n) => $o->setPrecision($n->getStringValue()), ]; } /** * Gets the precision property value. The precision property - * @return string|null - */ - public function getPrecision(): ?string { + */ + public function getPrecision(): ?string + { return $this->precision; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeStringValue('amount', $this->getAmount()); $writer->writeStringValue('precision', $this->getPrecision()); $writer->writeAdditionalData($this->getAdditionalData()); @@ -91,26 +102,31 @@ class NutrientValue implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the amount property value. The amount property - * @param string|null $value Value to set for the amount property. - */ - public function setAmount(?string $value): void { + * + * @param string|null $value Value to set for the amount property. + */ + public function setAmount(?string $value): void + { $this->amount = $value; } /** * Sets the precision property value. The precision property - * @param string|null $value Value to set for the precision property. - */ - public function setPrecision(?string $value): void { + * + * @param string|null $value Value to set for the precision property. + */ + public function setPrecision(?string $value): void + { $this->precision = $value; } - } diff --git a/client/Models/PaginationLinks.php b/client/Models/PaginationLinks.php old mode 100755 new mode 100644 index 3ea179c..b3b129b --- a/client/Models/PaginationLinks.php +++ b/client/Models/PaginationLinks.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 string|null $escapedSelf Lien vers la page courante. - */ + * @var string|null Lien vers la page courante. + */ private ?string $escapedSelf = null; - + /** - * @var string|null $first Lien vers la première page. - */ + * @var string|null Lien vers la première page. + */ private ?string $first = null; - + /** - * @var string|null $last Lien vers la dernière page. - */ + * @var string|null Lien vers la dernière page. + */ private ?string $last = null; - + /** - * @var string|null $next Lien vers la page suivante (null si dernière page). - */ + * @var string|null Lien vers la page suivante (null si dernière page). + */ private ?string $next = null; - + /** - * @var string|null $prev Lien vers la page précédente (null si première page). - */ + * @var string|null Lien vers la page précédente (null si première page). + */ private ?string $prev = null; - + /** * Instantiates a new PaginationLinks and sets the default values. - */ - public function __construct() { + */ + 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 PaginationLinks - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): PaginationLinks { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): PaginationLinks + { return new PaginationLinks(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * Gets the self property value. Lien vers la page courante. - * @return string|null - */ - public function getEscapedSelf(): ?string { + */ + public function getEscapedSelf(): ?string + { return $this->escapedSelf; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'self' => fn(ParseNode $n) => $o->setEscapedSelf($n->getStringValue()), - 'first' => fn(ParseNode $n) => $o->setFirst($n->getStringValue()), - 'last' => fn(ParseNode $n) => $o->setLast($n->getStringValue()), - 'next' => fn(ParseNode $n) => $o->setNext($n->getStringValue()), - 'prev' => fn(ParseNode $n) => $o->setPrev($n->getStringValue()), + + return [ + 'self' => fn (ParseNode $n) => $o->setEscapedSelf($n->getStringValue()), + 'first' => fn (ParseNode $n) => $o->setFirst($n->getStringValue()), + 'last' => fn (ParseNode $n) => $o->setLast($n->getStringValue()), + 'next' => fn (ParseNode $n) => $o->setNext($n->getStringValue()), + 'prev' => fn (ParseNode $n) => $o->setPrev($n->getStringValue()), ]; } /** * Gets the first property value. Lien vers la première page. - * @return string|null - */ - public function getFirst(): ?string { + */ + public function getFirst(): ?string + { return $this->first; } /** * Gets the last property value. Lien vers la dernière page. - * @return string|null - */ - public function getLast(): ?string { + */ + public function getLast(): ?string + { return $this->last; } /** * Gets the next property value. Lien vers la page suivante (null si dernière page). - * @return string|null - */ - public function getNext(): ?string { + */ + public function getNext(): ?string + { return $this->next; } /** * Gets the prev property value. Lien vers la page précédente (null si première page). - * @return string|null - */ - public function getPrev(): ?string { + */ + public function getPrev(): ?string + { return $this->prev; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeStringValue('self', $this->getEscapedSelf()); $writer->writeStringValue('first', $this->getFirst()); $writer->writeStringValue('last', $this->getLast()); @@ -136,50 +147,61 @@ class PaginationLinks implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the self property value. Lien vers la page courante. - * @param string|null $value Value to set for the self property. - */ - public function setEscapedSelf(?string $value): void { + * + * @param string|null $value Value to set for the self property. + */ + public function setEscapedSelf(?string $value): void + { $this->escapedSelf = $value; } /** * Sets the first property value. Lien vers la première page. - * @param string|null $value Value to set for the first property. - */ - public function setFirst(?string $value): void { + * + * @param string|null $value Value to set for the first property. + */ + public function setFirst(?string $value): void + { $this->first = $value; } /** * Sets the last property value. Lien vers la dernière page. - * @param string|null $value Value to set for the last property. - */ - public function setLast(?string $value): void { + * + * @param string|null $value Value to set for the last property. + */ + public function setLast(?string $value): void + { $this->last = $value; } /** * Sets the next property value. Lien vers la page suivante (null si dernière page). - * @param string|null $value Value to set for the next property. - */ - public function setNext(?string $value): void { + * + * @param string|null $value Value to set for the next property. + */ + public function setNext(?string $value): void + { $this->next = $value; } /** * Sets the prev property value. Lien vers la page précédente (null si première page). - * @param string|null $value Value to set for the prev property. - */ - public function setPrev(?string $value): void { + * + * @param string|null $value Value to set for the prev property. + */ + public function setPrev(?string $value): void + { $this->prev = $value; } - } diff --git a/client/Models/PaginationMeta.php b/client/Models/PaginationMeta.php old mode 100755 new mode 100644 index c1c6b4b..8e2784c --- a/client/Models/PaginationMeta.php +++ b/client/Models/PaginationMeta.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 PaginationLinks|null $links Liens de navigation HATEOAS pour la pagination. - */ + * @var PaginationLinks|null Liens de navigation HATEOAS pour la pagination. + */ private ?PaginationLinks $links = null; - + /** - * @var int|null $page Index de la page courante (1-based). - */ + * @var int|null Index de la page courante (1-based). + */ private ?int $page = null; - + /** - * @var int|null $pageSize Nombre d'éléments par page. - */ + * @var int|null Nombre d'éléments par page. + */ private ?int $pageSize = null; - + /** - * @var int|null $totalItems Nombre total d'éléments correspondant aux filtres. - */ + * @var int|null Nombre total d'éléments correspondant aux filtres. + */ private ?int $totalItems = null; - + /** - * @var int|null $totalPages Nombre total de pages disponibles. - */ + * @var int|null Nombre total de pages disponibles. + */ private ?int $totalPages = null; - + /** * Instantiates a new PaginationMeta and sets the default values. - */ - public function __construct() { + */ + 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 PaginationMeta - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): PaginationMeta { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): PaginationMeta + { return new PaginationMeta(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'links' => fn(ParseNode $n) => $o->setLinks($n->getObjectValue([PaginationLinks::class, 'createFromDiscriminatorValue'])), - 'page' => fn(ParseNode $n) => $o->setPage($n->getIntegerValue()), - 'pageSize' => fn(ParseNode $n) => $o->setPageSize($n->getIntegerValue()), - 'totalItems' => fn(ParseNode $n) => $o->setTotalItems($n->getIntegerValue()), - 'totalPages' => fn(ParseNode $n) => $o->setTotalPages($n->getIntegerValue()), + + return [ + 'links' => fn (ParseNode $n) => $o->setLinks($n->getObjectValue([PaginationLinks::class, 'createFromDiscriminatorValue'])), + 'page' => fn (ParseNode $n) => $o->setPage($n->getIntegerValue()), + 'pageSize' => fn (ParseNode $n) => $o->setPageSize($n->getIntegerValue()), + 'totalItems' => fn (ParseNode $n) => $o->setTotalItems($n->getIntegerValue()), + 'totalPages' => fn (ParseNode $n) => $o->setTotalPages($n->getIntegerValue()), ]; } /** * Gets the links property value. Liens de navigation HATEOAS pour la pagination. - * @return PaginationLinks|null - */ - public function getLinks(): ?PaginationLinks { + */ + public function getLinks(): ?PaginationLinks + { return $this->links; } /** * Gets the page property value. Index de la page courante (1-based). - * @return int|null - */ - public function getPage(): ?int { + */ + public function getPage(): ?int + { return $this->page; } /** * Gets the pageSize property value. Nombre d'éléments par page. - * @return int|null - */ - public function getPageSize(): ?int { + */ + public function getPageSize(): ?int + { return $this->pageSize; } /** * Gets the totalItems property value. Nombre total d'éléments correspondant aux filtres. - * @return int|null - */ - public function getTotalItems(): ?int { + */ + public function getTotalItems(): ?int + { return $this->totalItems; } /** * Gets the totalPages property value. Nombre total de pages disponibles. - * @return int|null - */ - public function getTotalPages(): ?int { + */ + public function getTotalPages(): ?int + { return $this->totalPages; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeObjectValue('links', $this->getLinks()); $writer->writeIntegerValue('page', $this->getPage()); $writer->writeIntegerValue('pageSize', $this->getPageSize()); @@ -136,50 +147,61 @@ class PaginationMeta implements AdditionalDataHolder, Parsable /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the links property value. Liens de navigation HATEOAS pour la pagination. - * @param PaginationLinks|null $value Value to set for the links property. - */ - public function setLinks(?PaginationLinks $value): void { + * + * @param PaginationLinks|null $value Value to set for the links property. + */ + public function setLinks(?PaginationLinks $value): void + { $this->links = $value; } /** * Sets the page property value. Index de la page courante (1-based). - * @param int|null $value Value to set for the page property. - */ - public function setPage(?int $value): void { + * + * @param int|null $value Value to set for the page property. + */ + public function setPage(?int $value): void + { $this->page = $value; } /** * Sets the pageSize property value. Nombre d'éléments par page. - * @param int|null $value Value to set for the pageSize property. - */ - public function setPageSize(?int $value): void { + * + * @param int|null $value Value to set for the pageSize property. + */ + public function setPageSize(?int $value): void + { $this->pageSize = $value; } /** * Sets the totalItems property value. Nombre total d'éléments correspondant aux filtres. - * @param int|null $value Value to set for the totalItems property. - */ - public function setTotalItems(?int $value): void { + * + * @param int|null $value Value to set for the totalItems property. + */ + public function setTotalItems(?int $value): void + { $this->totalItems = $value; } /** * Sets the totalPages property value. Nombre total de pages disponibles. - * @param int|null $value Value to set for the totalPages property. - */ - public function setTotalPages(?int $value): void { + * + * @param int|null $value Value to set for the totalPages property. + */ + public function setTotalPages(?int $value): void + { $this->totalPages = $value; } - } diff --git a/client/Models/PercentageValue.php b/client/Models/PercentageValue.php old mode 100755 new mode 100644 index 2d7875d..d945070 --- a/client/Models/PercentageValue.php +++ b/client/Models/PercentageValue.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 string|null $value The value property - */ + * @var string|null The value property + */ private ?string $value = null; - + /** * Instantiates a new PercentageValue and sets the default values. - */ - public function __construct() { + */ + 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 PercentageValue - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): PercentageValue { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): PercentageValue + { return new PercentageValue(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getStringValue()), + + return [ + 'value' => fn (ParseNode $n) => $o->setValue($n->getStringValue()), ]; } /** * Gets the value property value. The value property - * @return string|null - */ - public function getValue(): ?string { + */ + public function getValue(): ?string + { return $this->value; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeStringValue('value', $this->getValue()); $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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the value property value. The value property - * @param string|null $value Value to set for the value property. - */ - public function setValue(?string $value): void { + * + * @param string|null $value Value to set for the value property. + */ + public function setValue(?string $value): void + { $this->value = $value; } - } diff --git a/client/Models/ProblemDetails.php b/client/Models/ProblemDetails.php old mode 100755 new mode 100644 index 221ebad..4c91e5d --- a/client/Models/ProblemDetails.php +++ b/client/Models/ProblemDetails.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 string|null $detail Explication humaine détaillée de l'erreur. - */ + * @var string|null Explication humaine détaillée de l'erreur. + */ private ?string $detail = null; - + /** - * @var string|null $instance URI de l'endpoint ayant généré l'erreur. - */ + * @var string|null URI de l'endpoint ayant généré l'erreur. + */ private ?string $instance = null; - + /** - * @var int|null $status Code statut HTTP. - */ + * @var int|null Code statut HTTP. + */ private ?int $status = null; - + /** - * @var string|null $title Titre court lisible résumant le problème. - */ + * @var string|null Titre court lisible résumant le problème. + */ private ?string $title = null; - + /** - * @var string|null $type URI identifiant le type de problème. - */ + * @var string|null URI identifiant le type de problème. + */ private ?string $type = null; - + /** * Instantiates a new ProblemDetails and sets the default values. - */ - public function __construct() { - parent::__construct(); + */ + 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 ProblemDetails - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): ProblemDetails { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ProblemDetails + { 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|null - */ - public function getAdditionalData(): ?array { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * Gets the detail property value. Explication humaine détaillée de l'erreur. - * @return string|null - */ - public function getDetail(): ?string { + */ + public function getDetail(): ?string + { return $this->detail; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - 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()), + + 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()), ]; } /** * Gets the instance property value. URI de l'endpoint ayant généré l'erreur. - * @return string|null - */ - public function getInstance(): ?string { + */ + public function getInstance(): ?string + { return $this->instance; } /** * The primary error message. - * @return string - */ - public function getPrimaryErrorMessage(): string { + */ + public function getPrimaryErrorMessage(): string + { return parent::getMessage(); } /** * Gets the status property value. Code statut HTTP. - * @return int|null - */ - public function getStatus(): ?int { + */ + public function getStatus(): ?int + { return $this->status; } /** * Gets the title property value. Titre court lisible résumant le problème. - * @return string|null - */ - public function getTitle(): ?string { + */ + public function getTitle(): ?string + { return $this->title; } /** * Gets the type property value. URI identifiant le type de problème. - * @return string|null - */ - public function getType(): ?string { + */ + public function getType(): ?string + { return $this->type; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeStringValue('detail', $this->getDetail()); $writer->writeStringValue('instance', $this->getInstance()); $writer->writeIntegerValue('status', $this->getStatus()); @@ -146,50 +156,61 @@ class ProblemDetails extends ApiException implements AdditionalDataHolder, Parsa /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the detail property value. Explication humaine détaillée de l'erreur. - * @param string|null $value Value to set for the detail property. - */ - public function setDetail(?string $value): void { + * + * @param string|null $value Value to set for the detail property. + */ + public function setDetail(?string $value): void + { $this->detail = $value; } /** * Sets the instance property value. URI de l'endpoint ayant généré l'erreur. - * @param string|null $value Value to set for the instance property. - */ - public function setInstance(?string $value): void { + * + * @param string|null $value Value to set for the instance property. + */ + public function setInstance(?string $value): void + { $this->instance = $value; } /** * Sets the status property value. Code statut HTTP. - * @param int|null $value Value to set for the status property. - */ - public function setStatus(?int $value): void { + * + * @param int|null $value Value to set for the status property. + */ + public function setStatus(?int $value): void + { $this->status = $value; } /** * Sets the title property value. Titre court lisible résumant le problème. - * @param string|null $value Value to set for the title property. - */ - public function setTitle(?string $value): void { + * + * @param string|null $value Value to set for the title property. + */ + public function setTitle(?string $value): void + { $this->title = $value; } /** * Sets the type property value. URI identifiant le type de problème. - * @param string|null $value Value to set for the type property. - */ - public function setType(?string $value): void { + * + * @param string|null $value Value to set for the type property. + */ + public function setType(?string $value): void + { $this->type = $value; } - } diff --git a/client/Models/ValidationErrorProblemDetails.php b/client/Models/ValidationErrorProblemDetails.php old mode 100755 new mode 100644 index a42fb85..5f783b7 --- a/client/Models/ValidationErrorProblemDetails.php +++ b/client/Models/ValidationErrorProblemDetails.php @@ -1,5 +1,7 @@ |null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - */ + * @var array|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 string|null $detail Message d'ensemble. - */ + * @var string|null Message d'ensemble. + */ private ?string $detail = null; - + /** - * @var array|null $invalidParams Liste des paramètres invalides et motifs. - */ + * @var array|null Liste des paramètres invalides et motifs. + */ private ?array $invalidParams = null; - + /** - * @var int|null $status Code HTTP (422). - */ + * @var int|null Code HTTP (422). + */ private ?int $status = null; - + /** - * @var string|null $title Titre de l'erreur. - */ + * @var string|null Titre de l'erreur. + */ private ?string $title = null; - + /** - * @var string|null $type URI identifiant l'erreur de validation. - */ + * @var string|null URI identifiant l'erreur de validation. + */ private ?string $type = null; - + /** * Instantiates a new ValidationErrorProblemDetails and sets the default values. - */ - public function __construct() { - parent::__construct(); + */ + 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 ValidationErrorProblemDetails - */ - public static function createFromDiscriminatorValue(ParseNode $parseNode): ValidationErrorProblemDetails { + * + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ValidationErrorProblemDetails + { return new ValidationErrorProblemDetails(); } /** * 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 { + */ + public function getAdditionalData(): ?array + { return $this->additionalData; } /** * Gets the detail property value. Message d'ensemble. - * @return string|null - */ - public function getDetail(): ?string { + */ + public function getDetail(): ?string + { return $this->detail; } /** * The deserialization information for the current model + * * @return array - */ - public function getFieldDeserializers(): array { + */ + public function getFieldDeserializers(): array + { $o = $this; - return [ - 'detail' => fn(ParseNode $n) => $o->setDetail($n->getStringValue()), - 'invalidParams' => fn(ParseNode $n) => $o->setInvalidParams($n->getCollectionOfObjectValues([InvalidParamItem::class, 'createFromDiscriminatorValue'])), - 'status' => fn(ParseNode $n) => $o->setStatus($n->getIntegerValue()), - 'title' => fn(ParseNode $n) => $o->setTitle($n->getStringValue()), - 'type' => fn(ParseNode $n) => $o->setType($n->getStringValue()), + + return [ + 'detail' => fn (ParseNode $n) => $o->setDetail($n->getStringValue()), + 'invalidParams' => fn (ParseNode $n) => $o->setInvalidParams($n->getCollectionOfObjectValues([InvalidParamItem::class, 'createFromDiscriminatorValue'])), + 'status' => fn (ParseNode $n) => $o->setStatus($n->getIntegerValue()), + 'title' => fn (ParseNode $n) => $o->setTitle($n->getStringValue()), + 'type' => fn (ParseNode $n) => $o->setType($n->getStringValue()), ]; } /** * Gets the invalidParams property value. Liste des paramètres invalides et motifs. + * * @return array|null - */ - public function getInvalidParams(): ?array { + */ + public function getInvalidParams(): ?array + { return $this->invalidParams; } /** * The primary error message. - * @return string - */ - public function getPrimaryErrorMessage(): string { + */ + public function getPrimaryErrorMessage(): string + { return parent::getMessage(); } /** * Gets the status property value. Code HTTP (422). - * @return int|null - */ - public function getStatus(): ?int { + */ + public function getStatus(): ?int + { return $this->status; } /** * Gets the title property value. Titre de l'erreur. - * @return string|null - */ - public function getTitle(): ?string { + */ + public function getTitle(): ?string + { return $this->title; } /** * Gets the type property value. URI identifiant l'erreur de validation. - * @return string|null - */ - public function getType(): ?string { + */ + public function getType(): ?string + { return $this->type; } /** * Serializes information the current object - * @param SerializationWriter $writer Serialization writer to use to serialize this model - */ - public function serialize(SerializationWriter $writer): void { + * + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void + { $writer->writeStringValue('detail', $this->getDetail()); $writer->writeCollectionOfObjectValues('invalidParams', $this->getInvalidParams()); $writer->writeIntegerValue('status', $this->getStatus()); @@ -146,50 +158,61 @@ class ValidationErrorProblemDetails extends ApiException implements AdditionalDa /** * 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 { + * + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void + { $this->additionalData = $value; } /** * Sets the detail property value. Message d'ensemble. - * @param string|null $value Value to set for the detail property. - */ - public function setDetail(?string $value): void { + * + * @param string|null $value Value to set for the detail property. + */ + public function setDetail(?string $value): void + { $this->detail = $value; } /** * Sets the invalidParams property value. Liste des paramètres invalides et motifs. - * @param array|null $value Value to set for the invalidParams property. - */ - public function setInvalidParams(?array $value): void { + * + * @param array|null $value Value to set for the invalidParams property. + */ + public function setInvalidParams(?array $value): void + { $this->invalidParams = $value; } /** * Sets the status property value. Code HTTP (422). - * @param int|null $value Value to set for the status property. - */ - public function setStatus(?int $value): void { + * + * @param int|null $value Value to set for the status property. + */ + public function setStatus(?int $value): void + { $this->status = $value; } /** * Sets the title property value. Titre de l'erreur. - * @param string|null $value Value to set for the title property. - */ - public function setTitle(?string $value): void { + * + * @param string|null $value Value to set for the title property. + */ + public function setTitle(?string $value): void + { $this->title = $value; } /** * Sets the type property value. URI identifiant l'erreur de validation. - * @param string|null $value Value to set for the type property. - */ - public function setType(?string $value): void { + * + * @param string|null $value Value to set for the type property. + */ + public function setType(?string $value): void + { $this->type = $value; } - } diff --git a/client/kiota-lock.json b/client/kiota-lock.json old mode 100755 new mode 100644 index bc17028..ba55f0b --- a/client/kiota-lock.json +++ b/client/kiota-lock.json @@ -1,8 +1,8 @@ { - "descriptionHash": "1A08D0E5AD3E60A83AC393F49D7FA575A18BF25E507ACAA9794E009C8AC0CCF4BE88DA7CCE4520E9C037E7567F4612B606371E758C187A8F9255F0A7FB8FF0BA", + "descriptionHash": "A3C82067F8B5D2502F30C767911FBC7BA124839F21620CA6560D67066F53AE8F4D897148A76368730F67369448BFF3F1CD36932561DFC5E8E356B57EA71F5608", "descriptionLocation": "../openapi.yaml", "lockFileVersion": "1.0.0", - "kiotaVersion": "1.29.1", + "kiotaVersion": "1.34.1-Version suffix set to preview.202608200001", "clientClassName": "ApiClient", "typeAccessModifier": "Private", "clientNamespaceName": "Uwil\\ArcadiaKiotaOpenApiClient",