commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
ShippingMethod
ShippingMethodPagedQueryResponseBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\ShippingMethod
;
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
ShippingMethodPagedQueryResponseBuilder
implements
Builder
22
{
27
private
$limit;
28
33
private
$count;
34
39
private
$total;
40
45
private
$offset;
46
51
private
$results;
52
59
public
function
getLimit
()
60
{
61
return
$this->limit;
62
}
63
70
public
function
getCount
()
71
{
72
return
$this->count;
73
}
74
85
public
function
getTotal
()
86
{
87
return
$this->total;
88
}
89
96
public
function
getOffset
()
97
{
98
return
$this->offset;
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
withCount
(?
int
$count)
128
{
129
$this->count = $count;
130
131
return
$this;
132
}
133
138
public
function
withTotal
(?
int
$total)
139
{
140
$this->total = $total;
141
142
return
$this;
143
}
144
149
public
function
withOffset
(?
int
$offset)
150
{
151
$this->offset = $offset;
152
153
return
$this;
154
}
155
160
public
function
withResults
(?
ShippingMethodCollection
$results)
161
{
162
$this->results = $results;
163
164
return
$this;
165
}
166
167
168
public
function
build
():
ShippingMethodPagedQueryResponse
169
{
170
return
new
ShippingMethodPagedQueryResponseModel
(
171
$this->limit,
172
$this->count,
173
$this->total,
174
$this->offset,
175
$this->results
176
);
177
}
178
179
public
static
function
of
():
ShippingMethodPagedQueryResponseBuilder
180
{
181
return
new
self
();
182
}
183
}
Commercetools\Api\Models\ShippingMethod\ShippingMethodCollection
Definition:
ShippingMethodCollection.php:22
Commercetools\Api\Models\ShippingMethod\ShippingMethodPagedQueryResponseBuilder
Definition:
ShippingMethodPagedQueryResponseBuilder.php:22
Commercetools\Api\Models\ShippingMethod\ShippingMethodPagedQueryResponseBuilder\withOffset
withOffset(?int $offset)
Definition:
ShippingMethodPagedQueryResponseBuilder.php:149
Commercetools\Api\Models\ShippingMethod\ShippingMethodPagedQueryResponseBuilder\withLimit
withLimit(?int $limit)
Definition:
ShippingMethodPagedQueryResponseBuilder.php:116
Commercetools\Api\Models\ShippingMethod\ShippingMethodPagedQueryResponseBuilder\getTotal
getTotal()
Definition:
ShippingMethodPagedQueryResponseBuilder.php:85
Commercetools\Api\Models\ShippingMethod\ShippingMethodPagedQueryResponseBuilder\of
static of()
Definition:
ShippingMethodPagedQueryResponseBuilder.php:179
Commercetools\Api\Models\ShippingMethod\ShippingMethodPagedQueryResponseBuilder\withCount
withCount(?int $count)
Definition:
ShippingMethodPagedQueryResponseBuilder.php:127
Commercetools\Api\Models\ShippingMethod\ShippingMethodPagedQueryResponseBuilder\getOffset
getOffset()
Definition:
ShippingMethodPagedQueryResponseBuilder.php:96
Commercetools\Api\Models\ShippingMethod\ShippingMethodPagedQueryResponseBuilder\getLimit
getLimit()
Definition:
ShippingMethodPagedQueryResponseBuilder.php:59
Commercetools\Api\Models\ShippingMethod\ShippingMethodPagedQueryResponseBuilder\getResults
getResults()
Definition:
ShippingMethodPagedQueryResponseBuilder.php:107
Commercetools\Api\Models\ShippingMethod\ShippingMethodPagedQueryResponseBuilder\withTotal
withTotal(?int $total)
Definition:
ShippingMethodPagedQueryResponseBuilder.php:138
Commercetools\Api\Models\ShippingMethod\ShippingMethodPagedQueryResponseBuilder\getCount
getCount()
Definition:
ShippingMethodPagedQueryResponseBuilder.php:70
Commercetools\Api\Models\ShippingMethod\ShippingMethodPagedQueryResponseBuilder\withResults
withResults(?ShippingMethodCollection $results)
Definition:
ShippingMethodPagedQueryResponseBuilder.php:160
Commercetools\Api\Models\ShippingMethod\ShippingMethodPagedQueryResponseBuilder\build
build()
Definition:
ShippingMethodPagedQueryResponseBuilder.php:168
Commercetools\Api\Models\ShippingMethod\ShippingMethodPagedQueryResponseModel
Definition:
ShippingMethodPagedQueryResponseModel.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\ShippingMethod\ShippingMethodPagedQueryResponse
Definition:
ShippingMethodPagedQueryResponse.php:15
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\ShippingMethod
Definition:
CartClassificationTier.php:9
Generated by
1.9.1