commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
CommerceMcpServerConfigBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
17
22{
27 private $majorVersion;
28
33 private $url;
34
39 private $tools;
40
45 private $toolCustomizations;
46
51 private $jsonOutputFiltering;
52
57 private $toolOutputFormatting;
58
65 public function getMajorVersion()
66 {
67 return $this->majorVersion;
68 }
69
77 public function getUrl()
78 {
79 return $this->url;
80 }
81
88 public function getTools()
89 {
90 return $this->tools;
91 }
92
99 public function getToolCustomizations()
100 {
101 return $this->toolCustomizations;
102 }
103
110 public function getJsonOutputFiltering()
111 {
112 return $this->jsonOutputFiltering instanceof McpServerJsonOutputFilteringBuilder ? $this->jsonOutputFiltering->build() : $this->jsonOutputFiltering;
113 }
114
121 public function getToolOutputFormatting()
122 {
123 return $this->toolOutputFormatting;
124 }
125
130 public function withMajorVersion(?string $majorVersion)
131 {
132 $this->majorVersion = $majorVersion;
133
134 return $this;
135 }
136
141 public function withUrl(?string $url)
142 {
143 $this->url = $url;
144
145 return $this;
146 }
147
152 public function withTools(?array $tools)
153 {
154 $this->tools = $tools;
155
156 return $this;
157 }
158
163 public function withToolCustomizations(?ToolCustomizationCollection $toolCustomizations)
164 {
165 $this->toolCustomizations = $toolCustomizations;
166
167 return $this;
168 }
169
174 public function withJsonOutputFiltering(?McpServerJsonOutputFiltering $jsonOutputFiltering)
175 {
176 $this->jsonOutputFiltering = $jsonOutputFiltering;
177
178 return $this;
179 }
180
185 public function withToolOutputFormatting(?string $toolOutputFormatting)
186 {
187 $this->toolOutputFormatting = $toolOutputFormatting;
188
189 return $this;
190 }
191
197 {
198 $this->jsonOutputFiltering = $jsonOutputFiltering;
199
200 return $this;
201 }
202
204 {
206 $this->majorVersion,
207 $this->url,
208 $this->tools,
209 $this->toolCustomizations,
210 $this->jsonOutputFiltering instanceof McpServerJsonOutputFilteringBuilder ? $this->jsonOutputFiltering->build() : $this->jsonOutputFiltering,
211 $this->toolOutputFormatting
212 );
213 }
214
215 public static function of(): CommerceMcpServerConfigBuilder
216 {
217 return new self();
218 }
219}
withJsonOutputFiltering(?McpServerJsonOutputFiltering $jsonOutputFiltering)
withJsonOutputFilteringBuilder(?McpServerJsonOutputFilteringBuilder $jsonOutputFiltering)