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
StandalonePrice
StandalonePricePagedQueryResponseModel.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\StandalonePrice
;
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
StandalonePricePagedQueryResponseModel
extends
JsonObjectModel
implements
StandalonePricePagedQueryResponse
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
?
StandalonePriceCollection
$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
140
public
function
getTotal
()
141
{
142
if
(is_null($this->total)) {
144
$data = $this->
raw
(self::FIELD_TOTAL);
145
if
(is_null($data)) {
146
return
null
;
147
}
148
$this->total = (int) $data;
149
}
150
151
return
$this->total
;
152
}
153
160
public
function
getResults
()
161
{
162
if
(is_null($this->results)) {
164
$data = $this->
raw
(self::FIELD_RESULTS);
165
if
(is_null($data)) {
166
return
null
;
167
}
168
$this->results =
StandalonePriceCollection::fromArray
($data);
169
}
170
171
return
$this->results
;
172
}
173
174
178
public
function
setLimit
(?
int
$limit
): void
179
{
180
$this->limit =
$limit
;
181
}
182
186
public
function
setOffset
(?
int
$offset
): void
187
{
188
$this->offset =
$offset
;
189
}
190
194
public
function
setCount
(?
int
$count
): void
195
{
196
$this->count =
$count
;
197
}
198
202
public
function
setTotal
(?
int
$total
): void
203
{
204
$this->total =
$total
;
205
}
206
210
public
function
setResults
(?
StandalonePriceCollection
$results
): void
211
{
212
$this->results =
$results
;
213
}
214
}
Commercetools\Api\Models\StandalonePrice\StandalonePriceCollection
Definition
StandalonePriceCollection.php:22
Commercetools\Api\Models\StandalonePrice\StandalonePricePagedQueryResponseModel
Definition
StandalonePricePagedQueryResponseModel.php:21
Commercetools\Api\Models\StandalonePrice\StandalonePricePagedQueryResponseModel\getTotal
getTotal()
Definition
StandalonePricePagedQueryResponseModel.php:140
Commercetools\Api\Models\StandalonePrice\StandalonePricePagedQueryResponseModel\getLimit
getLimit()
Definition
StandalonePricePagedQueryResponseModel.php:76
Commercetools\Api\Models\StandalonePrice\StandalonePricePagedQueryResponseModel\__construct
__construct(?int $limit=null, ?int $offset=null, ?int $count=null, ?int $total=null, ?StandalonePriceCollection $results=null)
Definition
StandalonePricePagedQueryResponseModel.php:56
Commercetools\Api\Models\StandalonePrice\StandalonePricePagedQueryResponseModel\setResults
setResults(?StandalonePriceCollection $results)
Definition
StandalonePricePagedQueryResponseModel.php:210
Commercetools\Api\Models\StandalonePrice\StandalonePricePagedQueryResponseModel\$results
$results
Definition
StandalonePricePagedQueryResponseModel.php:50
Commercetools\Api\Models\StandalonePrice\StandalonePricePagedQueryResponseModel\$offset
$offset
Definition
StandalonePricePagedQueryResponseModel.php:32
Commercetools\Api\Models\StandalonePrice\StandalonePricePagedQueryResponseModel\getCount
getCount()
Definition
StandalonePricePagedQueryResponseModel.php:116
Commercetools\Api\Models\StandalonePrice\StandalonePricePagedQueryResponseModel\getOffset
getOffset()
Definition
StandalonePricePagedQueryResponseModel.php:96
Commercetools\Api\Models\StandalonePrice\StandalonePricePagedQueryResponseModel\$limit
$limit
Definition
StandalonePricePagedQueryResponseModel.php:26
Commercetools\Api\Models\StandalonePrice\StandalonePricePagedQueryResponseModel\setOffset
setOffset(?int $offset)
Definition
StandalonePricePagedQueryResponseModel.php:186
Commercetools\Api\Models\StandalonePrice\StandalonePricePagedQueryResponseModel\$total
$total
Definition
StandalonePricePagedQueryResponseModel.php:44
Commercetools\Api\Models\StandalonePrice\StandalonePricePagedQueryResponseModel\setLimit
setLimit(?int $limit)
Definition
StandalonePricePagedQueryResponseModel.php:178
Commercetools\Api\Models\StandalonePrice\StandalonePricePagedQueryResponseModel\setTotal
setTotal(?int $total)
Definition
StandalonePricePagedQueryResponseModel.php:202
Commercetools\Api\Models\StandalonePrice\StandalonePricePagedQueryResponseModel\setCount
setCount(?int $count)
Definition
StandalonePricePagedQueryResponseModel.php:194
Commercetools\Api\Models\StandalonePrice\StandalonePricePagedQueryResponseModel\getResults
getResults()
Definition
StandalonePricePagedQueryResponseModel.php:160
Commercetools\Api\Models\StandalonePrice\StandalonePricePagedQueryResponseModel\$count
$count
Definition
StandalonePricePagedQueryResponseModel.php:38
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\StandalonePrice\StandalonePricePagedQueryResponse
Definition
StandalonePricePagedQueryResponse.php:15
Commercetools\Base\CSequence\fromArray
static fromArray(array $data)
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\Api\Models\StandalonePrice
Definition
StagedPriceDraft.php:9
Generated by
1.9.8