commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
AttributeGroupPagedQueryResponseBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 
16 use 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 
71  public function getOffset()
72  {
73  return $this->offset;
74  }
75 
82  public function getCount()
83  {
84  return $this->count;
85  }
86 
97  public function getTotal()
98  {
99  return $this->total;
100  }
101 
108  public function getResults()
109  {
110  return $this->results;
111  }
112 
117  public function withLimit(?int $limit)
118  {
119  $this->limit = $limit;
120 
121  return $this;
122  }
123 
128  public function withOffset(?int $offset)
129  {
130  $this->offset = $offset;
131 
132  return $this;
133  }
134 
139  public function withCount(?int $count)
140  {
141  $this->count = $count;
142 
143  return $this;
144  }
145 
150  public function withTotal(?int $total)
151  {
152  $this->total = $total;
153 
154  return $this;
155  }
156 
161  public function withResults(?AttributeGroupCollection $results)
162  {
163  $this->results = $results;
164 
165  return $this;
166  }
167 
168 
170  {
172  $this->limit,
173  $this->offset,
174  $this->count,
175  $this->total,
176  $this->results
177  );
178  }
179 
180  public static function of(): AttributeGroupPagedQueryResponseBuilder
181  {
182  return new self();
183  }
184 }