commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
z
Variables
$
a
d
e
f
g
o
r
s
t
u
•
All
Classes
Namespaces
Functions
Variables
Pages
Loading...
Searching...
No Matches
lib
commercetools-api
src
Models
Common
PagedQueryResponseBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Common
;
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
PagedQueryResponseBuilder
implements
Builder
22
{
27
private
$limit;
28
33
private
$offset;
34
39
private
$count;
40
45
private
$total;
46
51
private
$results;
52
57
private
$meta;
58
65
public
function
getLimit
()
66
{
67
return
$this->limit;
68
}
65
public
function
getLimit
() {
…
}
69
76
public
function
getOffset
()
77
{
78
return
$this->offset;
79
}
76
public
function
getOffset
() {
…
}
80
87
public
function
getCount
()
88
{
89
return
$this->count;
90
}
87
public
function
getCount
() {
…
}
91
102
public
function
getTotal
()
103
{
104
return
$this->total;
105
}
102
public
function
getTotal
() {
…
}
106
114
public
function
getResults
()
115
{
116
return
$this->results;
117
}
114
public
function
getResults
() {
…
}
118
125
public
function
getMeta
()
126
{
127
return
$this->meta;
128
}
125
public
function
getMeta
() {
…
}
129
134
public
function
withLimit
(?
int
$limit)
135
{
136
$this->limit = $limit;
137
138
return
$this;
139
}
134
public
function
withLimit
(?
int
$limit) {
…
}
140
145
public
function
withOffset
(?
int
$offset)
146
{
147
$this->offset = $offset;
148
149
return
$this;
150
}
145
public
function
withOffset
(?
int
$offset) {
…
}
151
156
public
function
withCount
(?
int
$count)
157
{
158
$this->count = $count;
159
160
return
$this;
161
}
156
public
function
withCount
(?
int
$count) {
…
}
162
167
public
function
withTotal
(?
int
$total)
168
{
169
$this->total = $total;
170
171
return
$this;
172
}
167
public
function
withTotal
(?
int
$total) {
…
}
173
178
public
function
withResults
(?
BaseResourceCollection
$results)
179
{
180
$this->results = $results;
181
182
return
$this;
183
}
178
public
function
withResults
(?
BaseResourceCollection
$results) {
…
}
184
189
public
function
withMeta
(?
JsonObject
$meta)
190
{
191
$this->meta = $meta;
192
193
return
$this;
194
}
189
public
function
withMeta
(?
JsonObject
$meta) {
…
}
195
196
197
public
function
build
():
PagedQueryResponse
198
{
199
return
new
PagedQueryResponseModel
(
200
$this->limit,
201
$this->offset,
202
$this->count,
203
$this->total,
204
$this->results,
205
$this->meta
206
);
207
}
197
public
function
build
():
PagedQueryResponse
{
…
}
208
209
public
static
function
of
():
PagedQueryResponseBuilder
210
{
211
return
new
self
();
212
}
209
public
static
function
of
():
PagedQueryResponseBuilder
{
…
}
213
}
21
final
class
PagedQueryResponseBuilder
implements
Builder
{
…
};
Commercetools\Api\Models\Common\BaseResourceCollection
Definition
BaseResourceCollection.php:26
Commercetools\Api\Models\Common\PagedQueryResponseBuilder
Definition
PagedQueryResponseBuilder.php:22
Commercetools\Api\Models\Common\PagedQueryResponseBuilder\getResults
getResults()
Definition
PagedQueryResponseBuilder.php:114
Commercetools\Api\Models\Common\PagedQueryResponseBuilder\build
build()
Definition
PagedQueryResponseBuilder.php:197
Commercetools\Api\Models\Common\PagedQueryResponseBuilder\withTotal
withTotal(?int $total)
Definition
PagedQueryResponseBuilder.php:167
Commercetools\Api\Models\Common\PagedQueryResponseBuilder\withLimit
withLimit(?int $limit)
Definition
PagedQueryResponseBuilder.php:134
Commercetools\Api\Models\Common\PagedQueryResponseBuilder\getOffset
getOffset()
Definition
PagedQueryResponseBuilder.php:76
Commercetools\Api\Models\Common\PagedQueryResponseBuilder\getCount
getCount()
Definition
PagedQueryResponseBuilder.php:87
Commercetools\Api\Models\Common\PagedQueryResponseBuilder\withMeta
withMeta(?JsonObject $meta)
Definition
PagedQueryResponseBuilder.php:189
Commercetools\Api\Models\Common\PagedQueryResponseBuilder\withOffset
withOffset(?int $offset)
Definition
PagedQueryResponseBuilder.php:145
Commercetools\Api\Models\Common\PagedQueryResponseBuilder\getLimit
getLimit()
Definition
PagedQueryResponseBuilder.php:65
Commercetools\Api\Models\Common\PagedQueryResponseBuilder\getTotal
getTotal()
Definition
PagedQueryResponseBuilder.php:102
Commercetools\Api\Models\Common\PagedQueryResponseBuilder\withCount
withCount(?int $count)
Definition
PagedQueryResponseBuilder.php:156
Commercetools\Api\Models\Common\PagedQueryResponseBuilder\withResults
withResults(?BaseResourceCollection $results)
Definition
PagedQueryResponseBuilder.php:178
Commercetools\Api\Models\Common\PagedQueryResponseBuilder\of
static of()
Definition
PagedQueryResponseBuilder.php:209
Commercetools\Api\Models\Common\PagedQueryResponseBuilder\getMeta
getMeta()
Definition
PagedQueryResponseBuilder.php:125
Commercetools\Api\Models\Common\PagedQueryResponseModel
Definition
PagedQueryResponseModel.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\Common\PagedQueryResponse
Definition
PagedQueryResponse.php:15
Commercetools\Base\Builder
Definition
Builder.php:16
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\Api\Models\Common
Definition
Address.php:9
Generated by
1.9.8