commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-import
src
Models
Importoperations
ImportOperationPagedResponseBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Import\Models\Importoperations
;
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
ImportOperationPagedResponseBuilder
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
(?
ImportOperationCollection
$results)
157
{
158
$this->results = $results;
159
160
return
$this;
161
}
162
163
164
public
function
build
():
ImportOperationPagedResponse
165
{
166
return
new
ImportOperationPagedResponseModel
(
167
$this->limit,
168
$this->offset,
169
$this->count,
170
$this->total,
171
$this->results
172
);
173
}
174
175
public
static
function
of
():
ImportOperationPagedResponseBuilder
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\Importoperations\ImportOperationCollection
Definition:
ImportOperationCollection.php:22
Commercetools\Import\Models\Importoperations\ImportOperationPagedResponseBuilder
Definition:
ImportOperationPagedResponseBuilder.php:22
Commercetools\Import\Models\Importoperations\ImportOperationPagedResponseBuilder\of
static of()
Definition:
ImportOperationPagedResponseBuilder.php:175
Commercetools\Import\Models\Importoperations\ImportOperationPagedResponseBuilder\withResults
withResults(?ImportOperationCollection $results)
Definition:
ImportOperationPagedResponseBuilder.php:156
Commercetools\Import\Models\Importoperations\ImportOperationPagedResponseBuilder\withCount
withCount(?int $count)
Definition:
ImportOperationPagedResponseBuilder.php:134
Commercetools\Import\Models\Importoperations\ImportOperationPagedResponseBuilder\withTotal
withTotal(?int $total)
Definition:
ImportOperationPagedResponseBuilder.php:145
Commercetools\Import\Models\Importoperations\ImportOperationPagedResponseBuilder\getResults
getResults()
Definition:
ImportOperationPagedResponseBuilder.php:103
Commercetools\Import\Models\Importoperations\ImportOperationPagedResponseBuilder\getCount
getCount()
Definition:
ImportOperationPagedResponseBuilder.php:81
Commercetools\Import\Models\Importoperations\ImportOperationPagedResponseBuilder\withOffset
withOffset(?int $offset)
Definition:
ImportOperationPagedResponseBuilder.php:123
Commercetools\Import\Models\Importoperations\ImportOperationPagedResponseBuilder\getOffset
getOffset()
Definition:
ImportOperationPagedResponseBuilder.php:70
Commercetools\Import\Models\Importoperations\ImportOperationPagedResponseBuilder\getTotal
getTotal()
Definition:
ImportOperationPagedResponseBuilder.php:92
Commercetools\Import\Models\Importoperations\ImportOperationPagedResponseBuilder\getLimit
getLimit()
Definition:
ImportOperationPagedResponseBuilder.php:59
Commercetools\Import\Models\Importoperations\ImportOperationPagedResponseBuilder\withLimit
withLimit(?int $limit)
Definition:
ImportOperationPagedResponseBuilder.php:112
Commercetools\Import\Models\Importoperations\ImportOperationPagedResponseBuilder\build
build()
Definition:
ImportOperationPagedResponseBuilder.php:164
Commercetools\Import\Models\Importoperations\ImportOperationPagedResponseModel
Definition:
ImportOperationPagedResponseModel.php:21
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Import\Models\Importoperations\ImportOperationPagedResponse
Definition:
ImportOperationPagedResponse.php:15
Commercetools\Import\Models\Importoperations
Definition:
ImportOperation.php:9
Generated by
1.9.1