commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
z
Variables
$
a
d
e
f
g
o
r
s
t
u
•
All
Classes
Namespaces
Functions
Variables
Pages
Loading...
Searching...
No Matches
lib
commercetools-api
src
Models
Channel
ChannelPagedQueryResponseModel.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Channel
;
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
ChannelPagedQueryResponseModel
extends
JsonObjectModel
implements
ChannelPagedQueryResponse
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
?
ChannelCollection
$results
=
null
62
) {
63
$this->limit =
$limit
;
64
$this->offset =
$offset
;
65
$this->count =
$count
;
66
$this->total =
$total
;
67
$this->results =
$results
;
68
}
56
public
function
__construct
( {
…
}
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
}
76
public
function
getLimit
() {
…
}
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
}
96
public
function
getOffset
() {
…
}
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
}
116
public
function
getCount
() {
…
}
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
}
140
public
function
getTotal
() {
…
}
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 =
ChannelCollection::fromArray
($data);
169
}
170
171
return
$this->results
;
172
}
160
public
function
getResults
() {
…
}
173
174
178
public
function
setLimit
(?
int
$limit
): void
179
{
180
$this->limit =
$limit
;
181
}
178
public
function
setLimit
(?
int
$limit
): void {
…
}
182
186
public
function
setOffset
(?
int
$offset
): void
187
{
188
$this->offset =
$offset
;
189
}
186
public
function
setOffset
(?
int
$offset
): void {
…
}
190
194
public
function
setCount
(?
int
$count
): void
195
{
196
$this->count =
$count
;
197
}
194
public
function
setCount
(?
int
$count
): void {
…
}
198
202
public
function
setTotal
(?
int
$total
): void
203
{
204
$this->total =
$total
;
205
}
202
public
function
setTotal
(?
int
$total
): void {
…
}
206
210
public
function
setResults
(?
ChannelCollection
$results
): void
211
{
212
$this->results =
$results
;
213
}
210
public
function
setResults
(?
ChannelCollection
$results
): void {
…
}
214
}
20
final
class
ChannelPagedQueryResponseModel
extends
JsonObjectModel
implements
ChannelPagedQueryResponse
{
…
};
Commercetools\Api\Models\Channel\ChannelCollection
Definition
ChannelCollection.php:22
Commercetools\Api\Models\Channel\ChannelPagedQueryResponseModel
Definition
ChannelPagedQueryResponseModel.php:21
Commercetools\Api\Models\Channel\ChannelPagedQueryResponseModel\$offset
$offset
Definition
ChannelPagedQueryResponseModel.php:32
Commercetools\Api\Models\Channel\ChannelPagedQueryResponseModel\getOffset
getOffset()
Definition
ChannelPagedQueryResponseModel.php:96
Commercetools\Api\Models\Channel\ChannelPagedQueryResponseModel\getCount
getCount()
Definition
ChannelPagedQueryResponseModel.php:116
Commercetools\Api\Models\Channel\ChannelPagedQueryResponseModel\setCount
setCount(?int $count)
Definition
ChannelPagedQueryResponseModel.php:194
Commercetools\Api\Models\Channel\ChannelPagedQueryResponseModel\$limit
$limit
Definition
ChannelPagedQueryResponseModel.php:26
Commercetools\Api\Models\Channel\ChannelPagedQueryResponseModel\$count
$count
Definition
ChannelPagedQueryResponseModel.php:38
Commercetools\Api\Models\Channel\ChannelPagedQueryResponseModel\__construct
__construct(?int $limit=null, ?int $offset=null, ?int $count=null, ?int $total=null, ?ChannelCollection $results=null)
Definition
ChannelPagedQueryResponseModel.php:56
Commercetools\Api\Models\Channel\ChannelPagedQueryResponseModel\$total
$total
Definition
ChannelPagedQueryResponseModel.php:44
Commercetools\Api\Models\Channel\ChannelPagedQueryResponseModel\setResults
setResults(?ChannelCollection $results)
Definition
ChannelPagedQueryResponseModel.php:210
Commercetools\Api\Models\Channel\ChannelPagedQueryResponseModel\setLimit
setLimit(?int $limit)
Definition
ChannelPagedQueryResponseModel.php:178
Commercetools\Api\Models\Channel\ChannelPagedQueryResponseModel\setTotal
setTotal(?int $total)
Definition
ChannelPagedQueryResponseModel.php:202
Commercetools\Api\Models\Channel\ChannelPagedQueryResponseModel\$results
$results
Definition
ChannelPagedQueryResponseModel.php:50
Commercetools\Api\Models\Channel\ChannelPagedQueryResponseModel\getResults
getResults()
Definition
ChannelPagedQueryResponseModel.php:160
Commercetools\Api\Models\Channel\ChannelPagedQueryResponseModel\getLimit
getLimit()
Definition
ChannelPagedQueryResponseModel.php:76
Commercetools\Api\Models\Channel\ChannelPagedQueryResponseModel\getTotal
getTotal()
Definition
ChannelPagedQueryResponseModel.php:140
Commercetools\Api\Models\Channel\ChannelPagedQueryResponseModel\setOffset
setOffset(?int $offset)
Definition
ChannelPagedQueryResponseModel.php:186
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\Channel\ChannelPagedQueryResponse
Definition
ChannelPagedQueryResponse.php:15
Commercetools\Base\CSequence\fromArray
static fromArray(array $data)
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\Api\Models\Channel
Definition
Channel.php:9
Generated by
1.9.8