commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Customer
CustomerPagedQueryResponseBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Customer
;
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
CustomerPagedQueryResponseBuilder
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
70
public
function
getOffset
()
71
{
72
return
$this->offset;
73
}
74
81
public
function
getCount
()
82
{
83
return
$this->count;
84
}
85
96
public
function
getTotal
()
97
{
98
return
$this->total;
99
}
100
107
public
function
getResults
()
108
{
109
return
$this->results;
110
}
111
116
public
function
withLimit
(?
int
$limit)
117
{
118
$this->limit = $limit;
119
120
return
$this;
121
}
122
127
public
function
withOffset
(?
int
$offset)
128
{
129
$this->offset = $offset;
130
131
return
$this;
132
}
133
138
public
function
withCount
(?
int
$count)
139
{
140
$this->count = $count;
141
142
return
$this;
143
}
144
149
public
function
withTotal
(?
int
$total)
150
{
151
$this->total = $total;
152
153
return
$this;
154
}
155
160
public
function
withResults
(?
CustomerCollection
$results)
161
{
162
$this->results = $results;
163
164
return
$this;
165
}
166
167
168
public
function
build
():
CustomerPagedQueryResponse
169
{
170
return
new
CustomerPagedQueryResponseModel
(
171
$this->limit,
172
$this->offset,
173
$this->count,
174
$this->total,
175
$this->results
176
);
177
}
178
179
public
static
function
of
():
CustomerPagedQueryResponseBuilder
180
{
181
return
new
self
();
182
}
183
}
Commercetools\Api\Models\Customer\CustomerCollection
Definition:
CustomerCollection.php:22
Commercetools\Api\Models\Customer\CustomerPagedQueryResponseBuilder
Definition:
CustomerPagedQueryResponseBuilder.php:22
Commercetools\Api\Models\Customer\CustomerPagedQueryResponseBuilder\getResults
getResults()
Definition:
CustomerPagedQueryResponseBuilder.php:107
Commercetools\Api\Models\Customer\CustomerPagedQueryResponseBuilder\getOffset
getOffset()
Definition:
CustomerPagedQueryResponseBuilder.php:70
Commercetools\Api\Models\Customer\CustomerPagedQueryResponseBuilder\withTotal
withTotal(?int $total)
Definition:
CustomerPagedQueryResponseBuilder.php:149
Commercetools\Api\Models\Customer\CustomerPagedQueryResponseBuilder\getCount
getCount()
Definition:
CustomerPagedQueryResponseBuilder.php:81
Commercetools\Api\Models\Customer\CustomerPagedQueryResponseBuilder\withCount
withCount(?int $count)
Definition:
CustomerPagedQueryResponseBuilder.php:138
Commercetools\Api\Models\Customer\CustomerPagedQueryResponseBuilder\withOffset
withOffset(?int $offset)
Definition:
CustomerPagedQueryResponseBuilder.php:127
Commercetools\Api\Models\Customer\CustomerPagedQueryResponseBuilder\build
build()
Definition:
CustomerPagedQueryResponseBuilder.php:168
Commercetools\Api\Models\Customer\CustomerPagedQueryResponseBuilder\withLimit
withLimit(?int $limit)
Definition:
CustomerPagedQueryResponseBuilder.php:116
Commercetools\Api\Models\Customer\CustomerPagedQueryResponseBuilder\getLimit
getLimit()
Definition:
CustomerPagedQueryResponseBuilder.php:59
Commercetools\Api\Models\Customer\CustomerPagedQueryResponseBuilder\of
static of()
Definition:
CustomerPagedQueryResponseBuilder.php:179
Commercetools\Api\Models\Customer\CustomerPagedQueryResponseBuilder\getTotal
getTotal()
Definition:
CustomerPagedQueryResponseBuilder.php:96
Commercetools\Api\Models\Customer\CustomerPagedQueryResponseBuilder\withResults
withResults(?CustomerCollection $results)
Definition:
CustomerPagedQueryResponseBuilder.php:160
Commercetools\Api\Models\Customer\CustomerPagedQueryResponseModel
Definition:
CustomerPagedQueryResponseModel.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\Customer\CustomerPagedQueryResponse
Definition:
CustomerPagedQueryResponse.php:15
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Customer
Definition:
Customer.php:9
Generated by
1.9.1