From 5e0ce29ba65ca7086b5dd9d03489e54ff6370e3a Mon Sep 17 00:00:00 2001 From: ah-net <103565001+ah-net@users.noreply.github.com> Date: Fri, 3 Jan 2025 15:04:13 +0100 Subject: [PATCH] Style fixes --- Model/Client/Request/Catalog/BuilderTemplateRequest.php | 2 +- Model/Client/Request/ProductNavigationRequest.php | 6 +++++- Model/Client/Response/Catalog/BuilderTemplateResponse.php | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Model/Client/Request/Catalog/BuilderTemplateRequest.php b/Model/Client/Request/Catalog/BuilderTemplateRequest.php index 442bf40..a5168b5 100644 --- a/Model/Client/Request/Catalog/BuilderTemplateRequest.php +++ b/Model/Client/Request/Catalog/BuilderTemplateRequest.php @@ -15,7 +15,7 @@ class BuilderTemplateRequest extends Request /** * @return string */ - public function getResponseType() + public function getResponseType(): string { return BuilderTemplateResponse::class; } diff --git a/Model/Client/Request/ProductNavigationRequest.php b/Model/Client/Request/ProductNavigationRequest.php index a0c94ac..57a4eb7 100644 --- a/Model/Client/Request/ProductNavigationRequest.php +++ b/Model/Client/Request/ProductNavigationRequest.php @@ -122,7 +122,11 @@ public function setSortTemplateId($templateId) return $this; } - public function setBuilderTemplateId($templateId) + /** + * @param int|null $templateId + * @return ProductNavigationRequest + */ + public function setBuilderTemplateId($templateId): ProductNavigationRequest { $this->setParameter('tn_b', $templateId); return $this; diff --git a/Model/Client/Response/Catalog/BuilderTemplateResponse.php b/Model/Client/Response/Catalog/BuilderTemplateResponse.php index db447d9..6a3f1fa 100644 --- a/Model/Client/Response/Catalog/BuilderTemplateResponse.php +++ b/Model/Client/Response/Catalog/BuilderTemplateResponse.php @@ -11,7 +11,7 @@ class BuilderTemplateResponse extends Response * @param TemplateType[]|array[] $templates * @return $this */ - public function setBuilder(array $templates) + public function setBuilder(array $templates): BuilderTemplateResponse { $templates = $this->normalizeArray($templates, 'builder');