commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
lib
commercetools-api
src
Models
AttributeGroup
AttributeGroupPagedQueryResponseModel.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\AttributeGroup
;
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
AttributeGroupPagedQueryResponseModel
extends
JsonObjectModel
implements
AttributeGroupPagedQueryResponse
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
?
AttributeGroupCollection
$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
97
public
function
getOffset
()
98
{
99
if
(is_null($this->offset)) {
101
$data = $this->
raw
(self::FIELD_OFFSET);
102
if
(is_null($data)) {
103
return
null
;
104
}
105
$this->offset = (int) $data;
106
}
107
108
return
$this->offset
;
109
}
110
117
public
function
getCount
()
118
{
119
if
(is_null($this->count)) {
121
$data = $this->
raw
(self::FIELD_COUNT);
122
if
(is_null($data)) {
123
return
null
;
124
}
125
$this->count = (int) $data;
126
}
127
128
return
$this->count
;
129
}
130
141
public
function
getTotal
()
142
{
143
if
(is_null($this->total)) {
145
$data = $this->
raw
(self::FIELD_TOTAL);
146
if
(is_null($data)) {
147
return
null
;
148
}
149
$this->total = (int) $data;
150
}
151
152
return
$this->total
;
153
}
154
161
public
function
getResults
()
162
{
163
if
(is_null($this->results)) {
165
$data = $this->
raw
(self::FIELD_RESULTS);
166
if
(is_null($data)) {
167
return
null
;
168
}
169
$this->results =
AttributeGroupCollection::fromArray
($data);
170
}
171
172
return
$this->results
;
173
}
174
175
179
public
function
setLimit
(?
int
$limit
): void
180
{
181
$this->limit =
$limit
;
182
}
183
187
public
function
setOffset
(?
int
$offset
): void
188
{
189
$this->offset =
$offset
;
190
}
191
195
public
function
setCount
(?
int
$count
): void
196
{
197
$this->count =
$count
;
198
}
199
203
public
function
setTotal
(?
int
$total
): void
204
{
205
$this->total =
$total
;
206
}
207
211
public
function
setResults
(?
AttributeGroupCollection
$results
): void
212
{
213
$this->results =
$results
;
214
}
215
}
Commercetools\Api\Models\AttributeGroup\AttributeGroupCollection
Definition
AttributeGroupCollection.php:22
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponseModel
Definition
AttributeGroupPagedQueryResponseModel.php:21
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponseModel\setResults
setResults(?AttributeGroupCollection $results)
Definition
AttributeGroupPagedQueryResponseModel.php:211
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponseModel\$offset
$offset
Definition
AttributeGroupPagedQueryResponseModel.php:32
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponseModel\getResults
getResults()
Definition
AttributeGroupPagedQueryResponseModel.php:161
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponseModel\getLimit
getLimit()
Definition
AttributeGroupPagedQueryResponseModel.php:76
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponseModel\$total
$total
Definition
AttributeGroupPagedQueryResponseModel.php:44
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponseModel\setOffset
setOffset(?int $offset)
Definition
AttributeGroupPagedQueryResponseModel.php:187
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponseModel\setLimit
setLimit(?int $limit)
Definition
AttributeGroupPagedQueryResponseModel.php:179
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponseModel\getTotal
getTotal()
Definition
AttributeGroupPagedQueryResponseModel.php:141
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponseModel\getOffset
getOffset()
Definition
AttributeGroupPagedQueryResponseModel.php:97
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponseModel\$count
$count
Definition
AttributeGroupPagedQueryResponseModel.php:38
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponseModel\setCount
setCount(?int $count)
Definition
AttributeGroupPagedQueryResponseModel.php:195
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponseModel\getCount
getCount()
Definition
AttributeGroupPagedQueryResponseModel.php:117
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponseModel\$limit
$limit
Definition
AttributeGroupPagedQueryResponseModel.php:26
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponseModel\__construct
__construct(?int $limit=null, ?int $offset=null, ?int $count=null, ?int $total=null, ?AttributeGroupCollection $results=null)
Definition
AttributeGroupPagedQueryResponseModel.php:56
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponseModel\$results
$results
Definition
AttributeGroupPagedQueryResponseModel.php:50
Commercetools\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponseModel\setTotal
setTotal(?int $total)
Definition
AttributeGroupPagedQueryResponseModel.php:203
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\Api\Models\AttributeGroup\AttributeGroupPagedQueryResponse
Definition
AttributeGroupPagedQueryResponse.php:15
Commercetools\Base\CSequence\fromArray
static fromArray(array $data)
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\Api\Models\AttributeGroup
Definition
AttributeGroup.php:9
Generated by
1.9.8