commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-import
src
Models
Importcontainers
ImportContainerPagedResponseBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Import\Models\Importcontainers
;
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
ImportContainerPagedResponseBuilder
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
92
public
function
getTotal
()
93
{
94
return
$this->total;
95
}
96
103
public
function
getResults
()
104
{
105
return
$this->results;
106
}
107
112
public
function
withLimit
(?
int
$limit)
113
{
114
$this->limit = $limit;
115
116
return
$this;
117
}
118
123
public
function
withOffset
(?
int
$offset)
124
{
125
$this->offset = $offset;
126
127
return
$this;
128
}
129
134
public
function
withCount
(?
int
$count)
135
{
136
$this->count = $count;
137
138
return
$this;
139
}
140
145
public
function
withTotal
(?
int
$total)
146
{
147
$this->total = $total;
148
149
return
$this;
150
}
151
156
public
function
withResults
(?
ImportContainerCollection
$results)
157
{
158
$this->results = $results;
159
160
return
$this;
161
}
162
163
164
public
function
build
():
ImportContainerPagedResponse
165
{
166
return
new
ImportContainerPagedResponseModel
(
167
$this->limit,
168
$this->offset,
169
$this->count,
170
$this->total,
171
$this->results
172
);
173
}
174
175
public
static
function
of
():
ImportContainerPagedResponseBuilder
176
{
177
return
new
self
();
178
}
179
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Import\Models\Importcontainers\ImportContainerCollection
Definition:
ImportContainerCollection.php:22
Commercetools\Import\Models\Importcontainers\ImportContainerPagedResponseBuilder
Definition:
ImportContainerPagedResponseBuilder.php:22
Commercetools\Import\Models\Importcontainers\ImportContainerPagedResponseBuilder\getCount
getCount()
Definition:
ImportContainerPagedResponseBuilder.php:81
Commercetools\Import\Models\Importcontainers\ImportContainerPagedResponseBuilder\withResults
withResults(?ImportContainerCollection $results)
Definition:
ImportContainerPagedResponseBuilder.php:156
Commercetools\Import\Models\Importcontainers\ImportContainerPagedResponseBuilder\withTotal
withTotal(?int $total)
Definition:
ImportContainerPagedResponseBuilder.php:145
Commercetools\Import\Models\Importcontainers\ImportContainerPagedResponseBuilder\getTotal
getTotal()
Definition:
ImportContainerPagedResponseBuilder.php:92
Commercetools\Import\Models\Importcontainers\ImportContainerPagedResponseBuilder\getResults
getResults()
Definition:
ImportContainerPagedResponseBuilder.php:103
Commercetools\Import\Models\Importcontainers\ImportContainerPagedResponseBuilder\getLimit
getLimit()
Definition:
ImportContainerPagedResponseBuilder.php:59
Commercetools\Import\Models\Importcontainers\ImportContainerPagedResponseBuilder\withCount
withCount(?int $count)
Definition:
ImportContainerPagedResponseBuilder.php:134
Commercetools\Import\Models\Importcontainers\ImportContainerPagedResponseBuilder\of
static of()
Definition:
ImportContainerPagedResponseBuilder.php:175
Commercetools\Import\Models\Importcontainers\ImportContainerPagedResponseBuilder\withLimit
withLimit(?int $limit)
Definition:
ImportContainerPagedResponseBuilder.php:112
Commercetools\Import\Models\Importcontainers\ImportContainerPagedResponseBuilder\build
build()
Definition:
ImportContainerPagedResponseBuilder.php:164
Commercetools\Import\Models\Importcontainers\ImportContainerPagedResponseBuilder\getOffset
getOffset()
Definition:
ImportContainerPagedResponseBuilder.php:70
Commercetools\Import\Models\Importcontainers\ImportContainerPagedResponseBuilder\withOffset
withOffset(?int $offset)
Definition:
ImportContainerPagedResponseBuilder.php:123
Commercetools\Import\Models\Importcontainers\ImportContainerPagedResponseModel
Definition:
ImportContainerPagedResponseModel.php:21
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Import\Models\Importcontainers\ImportContainerPagedResponse
Definition:
ImportContainerPagedResponse.php:15
Commercetools\Import\Models\Importcontainers
Definition:
ImportContainer.php:9
Generated by
1.9.1