commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
McpServerPagedQueryResponseBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
17
22{
27 private $limit;
28
33 private $offset;
34
39 private $count;
40
45 private $total;
46
51 private $results;
52
59 public function getLimit()
60 {
61 return $this->limit;
62 }
63
70 public function getOffset()
71 {
72 return $this->offset;
73 }
74
81 public function getCount()
82 {
83 return $this->count;
84 }
85
94 public function getTotal()
95 {
96 return $this->total;
97 }
98
105 public function getResults()
106 {
107 return $this->results;
108 }
109
114 public function withLimit(?int $limit)
115 {
116 $this->limit = $limit;
117
118 return $this;
119 }
120
125 public function withOffset(?int $offset)
126 {
127 $this->offset = $offset;
128
129 return $this;
130 }
131
136 public function withCount(?int $count)
137 {
138 $this->count = $count;
139
140 return $this;
141 }
142
147 public function withTotal(?int $total)
148 {
149 $this->total = $total;
150
151 return $this;
152 }
153
158 public function withResults(?McpServerCollection $results)
159 {
160 $this->results = $results;
161
162 return $this;
163 }
164
165
167 {
169 $this->limit,
170 $this->offset,
171 $this->count,
172 $this->total,
173 $this->results
174 );
175 }
176
177 public static function of(): McpServerPagedQueryResponseBuilder
178 {
179 return new self();
180 }
181}