commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
AttributeGroup
AttributeGroupPagedQueryResponseBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\AttributeGroup
;
10
11
use
Commercetools\Base\Builder
;
12
use
Commercetools\Base\DateTimeImmutableCollection
;
13
use
Commercetools\Base\JsonObject
;
14
use
Commercetools\Base\JsonObjectModel
;
15
use
Commercetools\Base\MapperFactory
;
16
use stdClass;
17
21
final
class
AttributeGroupPagedQueryResponseBuilder
implements
Builder
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
169
public
function
build
():
AttributeGroupPagedQueryResponse
170
{
171
return
new
AttributeGroupPagedQueryResponseModel
(
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
}
Commercetools\Api\Models\AttributeGroup\AttributeGroupCollection
Definition:
AttributeGroupCollection.php:22
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponseBuilder
Definition:
AttributeGroupPagedQueryResponseBuilder.php:22
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponseBuilder\getTotal
getTotal()
Definition:
AttributeGroupPagedQueryResponseBuilder.php:97
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponseBuilder\withResults
withResults(?AttributeGroupCollection $results)
Definition:
AttributeGroupPagedQueryResponseBuilder.php:161
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponseBuilder\getLimit
getLimit()
Definition:
AttributeGroupPagedQueryResponseBuilder.php:59
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponseBuilder\withTotal
withTotal(?int $total)
Definition:
AttributeGroupPagedQueryResponseBuilder.php:150
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponseBuilder\withLimit
withLimit(?int $limit)
Definition:
AttributeGroupPagedQueryResponseBuilder.php:117
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponseBuilder\getOffset
getOffset()
Definition:
AttributeGroupPagedQueryResponseBuilder.php:71
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponseBuilder\withCount
withCount(?int $count)
Definition:
AttributeGroupPagedQueryResponseBuilder.php:139
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponseBuilder\getCount
getCount()
Definition:
AttributeGroupPagedQueryResponseBuilder.php:82
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponseBuilder\build
build()
Definition:
AttributeGroupPagedQueryResponseBuilder.php:169
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponseBuilder\getResults
getResults()
Definition:
AttributeGroupPagedQueryResponseBuilder.php:108
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponseBuilder\of
static of()
Definition:
AttributeGroupPagedQueryResponseBuilder.php:180
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponseBuilder\withOffset
withOffset(?int $offset)
Definition:
AttributeGroupPagedQueryResponseBuilder.php:128
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponseModel
Definition:
AttributeGroupPagedQueryResponseModel.php:21
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponse
Definition:
AttributeGroupPagedQueryResponse.php:15
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\AttributeGroup
Definition:
AttributeGroup.php:9
Generated by
1.9.1