commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
CustomerSearch
CustomerPagedSearchResponseBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\CustomerSearch
;
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
CustomerPagedSearchResponseBuilder
implements
Builder
22
{
27
private
$total;
28
33
private
$limit;
34
39
private
$offset;
40
45
private
$results;
46
53
public
function
getTotal
()
54
{
55
return
$this->total;
56
}
57
64
public
function
getLimit
()
65
{
66
return
$this->limit;
67
}
68
75
public
function
getOffset
()
76
{
77
return
$this->offset;
78
}
79
86
public
function
getResults
()
87
{
88
return
$this->results;
89
}
90
95
public
function
withTotal
(?
int
$total)
96
{
97
$this->total = $total;
98
99
return
$this;
100
}
101
106
public
function
withLimit
(?
int
$limit)
107
{
108
$this->limit = $limit;
109
110
return
$this;
111
}
112
117
public
function
withOffset
(?
int
$offset)
118
{
119
$this->offset = $offset;
120
121
return
$this;
122
}
123
128
public
function
withResults
(?
CustomerSearchResultCollection
$results)
129
{
130
$this->results = $results;
131
132
return
$this;
133
}
134
135
136
public
function
build
():
CustomerPagedSearchResponse
137
{
138
return
new
CustomerPagedSearchResponseModel
(
139
$this->total,
140
$this->limit,
141
$this->offset,
142
$this->results
143
);
144
}
145
146
public
static
function
of
():
CustomerPagedSearchResponseBuilder
147
{
148
return
new
self
();
149
}
150
}
Commercetools\Api\Models\CustomerSearch\CustomerPagedSearchResponseBuilder
Definition:
CustomerPagedSearchResponseBuilder.php:22
Commercetools\Api\Models\CustomerSearch\CustomerPagedSearchResponseBuilder\getTotal
getTotal()
Definition:
CustomerPagedSearchResponseBuilder.php:53
Commercetools\Api\Models\CustomerSearch\CustomerPagedSearchResponseBuilder\withTotal
withTotal(?int $total)
Definition:
CustomerPagedSearchResponseBuilder.php:95
Commercetools\Api\Models\CustomerSearch\CustomerPagedSearchResponseBuilder\getOffset
getOffset()
Definition:
CustomerPagedSearchResponseBuilder.php:75
Commercetools\Api\Models\CustomerSearch\CustomerPagedSearchResponseBuilder\build
build()
Definition:
CustomerPagedSearchResponseBuilder.php:136
Commercetools\Api\Models\CustomerSearch\CustomerPagedSearchResponseBuilder\withOffset
withOffset(?int $offset)
Definition:
CustomerPagedSearchResponseBuilder.php:117
Commercetools\Api\Models\CustomerSearch\CustomerPagedSearchResponseBuilder\getResults
getResults()
Definition:
CustomerPagedSearchResponseBuilder.php:86
Commercetools\Api\Models\CustomerSearch\CustomerPagedSearchResponseBuilder\withResults
withResults(?CustomerSearchResultCollection $results)
Definition:
CustomerPagedSearchResponseBuilder.php:128
Commercetools\Api\Models\CustomerSearch\CustomerPagedSearchResponseBuilder\getLimit
getLimit()
Definition:
CustomerPagedSearchResponseBuilder.php:64
Commercetools\Api\Models\CustomerSearch\CustomerPagedSearchResponseBuilder\withLimit
withLimit(?int $limit)
Definition:
CustomerPagedSearchResponseBuilder.php:106
Commercetools\Api\Models\CustomerSearch\CustomerPagedSearchResponseBuilder\of
static of()
Definition:
CustomerPagedSearchResponseBuilder.php:146
Commercetools\Api\Models\CustomerSearch\CustomerPagedSearchResponseModel
Definition:
CustomerPagedSearchResponseModel.php:21
Commercetools\Api\Models\CustomerSearch\CustomerSearchResultCollection
Definition:
CustomerSearchResultCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Api\Models\CustomerSearch\CustomerPagedSearchResponse
Definition:
CustomerPagedSearchResponse.php:15
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\CustomerSearch
Definition:
CustomerIndexingProgress.php:9
Generated by
1.9.1