commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
lib
commercetools-import
src
Models
Importcontainers
ImportContainerPagedResponseModel.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Import\Models\Importcontainers
;
10
11
use
Commercetools\Base\DateTimeImmutableCollection
;
12
use
Commercetools\Base\JsonObject
;
13
use
Commercetools\Base\JsonObjectModel
;
14
use
Commercetools\Base\MapperFactory
;
15
use stdClass;
16
20
final
class
ImportContainerPagedResponseModel
extends
JsonObjectModel
implements
ImportContainerPagedResponse
21
{
26
protected
$limit
;
27
32
protected
$offset
;
33
38
protected
$count
;
39
44
protected
$total
;
45
50
protected
$results
;
51
52
56
public
function
__construct
(
57
?
int
$limit
=
null
,
58
?
int
$offset
=
null
,
59
?
int
$count
=
null
,
60
?
int
$total
=
null
,
61
?
ImportContainerCollection
$results
=
null
62
) {
63
$this->limit =
$limit
;
64
$this->offset =
$offset
;
65
$this->count =
$count
;
66
$this->total =
$total
;
67
$this->results =
$results
;
68
}
69
76
public
function
getLimit
()
77
{
78
if
(is_null($this->limit)) {
80
$data = $this->
raw
(self::FIELD_LIMIT);
81
if
(is_null($data)) {
82
return
null
;
83
}
84
$this->limit = (int) $data;
85
}
86
87
return
$this->limit
;
88
}
89
96
public
function
getOffset
()
97
{
98
if
(is_null($this->offset)) {
100
$data = $this->
raw
(self::FIELD_OFFSET);
101
if
(is_null($data)) {
102
return
null
;
103
}
104
$this->offset = (int) $data;
105
}
106
107
return
$this->offset
;
108
}
109
116
public
function
getCount
()
117
{
118
if
(is_null($this->count)) {
120
$data = $this->
raw
(self::FIELD_COUNT);
121
if
(is_null($data)) {
122
return
null
;
123
}
124
$this->count = (int) $data;
125
}
126
127
return
$this->count
;
128
}
129
136
public
function
getTotal
()
137
{
138
if
(is_null($this->total)) {
140
$data = $this->
raw
(self::FIELD_TOTAL);
141
if
(is_null($data)) {
142
return
null
;
143
}
144
$this->total = (int) $data;
145
}
146
147
return
$this->total
;
148
}
149
156
public
function
getResults
()
157
{
158
if
(is_null($this->results)) {
160
$data = $this->
raw
(self::FIELD_RESULTS);
161
if
(is_null($data)) {
162
return
null
;
163
}
164
$this->results =
ImportContainerCollection::fromArray
($data);
165
}
166
167
return
$this->results
;
168
}
169
170
174
public
function
setLimit
(?
int
$limit
): void
175
{
176
$this->limit =
$limit
;
177
}
178
182
public
function
setOffset
(?
int
$offset
): void
183
{
184
$this->offset =
$offset
;
185
}
186
190
public
function
setCount
(?
int
$count
): void
191
{
192
$this->count =
$count
;
193
}
194
198
public
function
setTotal
(?
int
$total
): void
199
{
200
$this->total =
$total
;
201
}
202
206
public
function
setResults
(?
ImportContainerCollection
$results
): void
207
{
208
$this->results =
$results
;
209
}
210
}
Commercetools\Base\BaseJsonObject\raw
raw(string $field)
Definition
BaseJsonObject.php:57
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\ImportContainerPagedResponseModel
Definition
ImportContainerPagedResponseModel.php:21
Commercetools\Import\Models\Importcontainers\ImportContainerPagedResponseModel\$limit
$limit
Definition
ImportContainerPagedResponseModel.php:26
Commercetools\Import\Models\Importcontainers\ImportContainerPagedResponseModel\setOffset
setOffset(?int $offset)
Definition
ImportContainerPagedResponseModel.php:182
Commercetools\Import\Models\Importcontainers\ImportContainerPagedResponseModel\$count
$count
Definition
ImportContainerPagedResponseModel.php:38
Commercetools\Import\Models\Importcontainers\ImportContainerPagedResponseModel\$total
$total
Definition
ImportContainerPagedResponseModel.php:44
Commercetools\Import\Models\Importcontainers\ImportContainerPagedResponseModel\setTotal
setTotal(?int $total)
Definition
ImportContainerPagedResponseModel.php:198
Commercetools\Import\Models\Importcontainers\ImportContainerPagedResponseModel\getLimit
getLimit()
Definition
ImportContainerPagedResponseModel.php:76
Commercetools\Import\Models\Importcontainers\ImportContainerPagedResponseModel\setCount
setCount(?int $count)
Definition
ImportContainerPagedResponseModel.php:190
Commercetools\Import\Models\Importcontainers\ImportContainerPagedResponseModel\getOffset
getOffset()
Definition
ImportContainerPagedResponseModel.php:96
Commercetools\Import\Models\Importcontainers\ImportContainerPagedResponseModel\setLimit
setLimit(?int $limit)
Definition
ImportContainerPagedResponseModel.php:174
Commercetools\Import\Models\Importcontainers\ImportContainerPagedResponseModel\$offset
$offset
Definition
ImportContainerPagedResponseModel.php:32
Commercetools\Import\Models\Importcontainers\ImportContainerPagedResponseModel\__construct
__construct(?int $limit=null, ?int $offset=null, ?int $count=null, ?int $total=null, ?ImportContainerCollection $results=null)
Definition
ImportContainerPagedResponseModel.php:56
Commercetools\Import\Models\Importcontainers\ImportContainerPagedResponseModel\getTotal
getTotal()
Definition
ImportContainerPagedResponseModel.php:136
Commercetools\Import\Models\Importcontainers\ImportContainerPagedResponseModel\getResults
getResults()
Definition
ImportContainerPagedResponseModel.php:156
Commercetools\Import\Models\Importcontainers\ImportContainerPagedResponseModel\getCount
getCount()
Definition
ImportContainerPagedResponseModel.php:116
Commercetools\Import\Models\Importcontainers\ImportContainerPagedResponseModel\setResults
setResults(?ImportContainerCollection $results)
Definition
ImportContainerPagedResponseModel.php:206
Commercetools\Import\Models\Importcontainers\ImportContainerPagedResponseModel\$results
$results
Definition
ImportContainerPagedResponseModel.php:50
Commercetools\Base\CSequence\fromArray
static fromArray(array $data)
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.8