commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Order
OrderPagedSearchResponseBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Order
;
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
OrderPagedSearchResponseBuilder
implements
Builder
22
{
27
private
$total;
28
33
private
$offset;
34
39
private
$limit;
40
45
private
$hits;
46
53
public
function
getTotal
()
54
{
55
return
$this->total;
56
}
57
64
public
function
getOffset
()
65
{
66
return
$this->offset;
67
}
68
75
public
function
getLimit
()
76
{
77
return
$this->limit;
78
}
79
86
public
function
getHits
()
87
{
88
return
$this->hits;
89
}
90
95
public
function
withTotal
(?
int
$total)
96
{
97
$this->total = $total;
98
99
return
$this;
100
}
101
106
public
function
withOffset
(?
int
$offset)
107
{
108
$this->offset = $offset;
109
110
return
$this;
111
}
112
117
public
function
withLimit
(?
int
$limit)
118
{
119
$this->limit = $limit;
120
121
return
$this;
122
}
123
128
public
function
withHits
(?
HitCollection
$hits)
129
{
130
$this->hits = $hits;
131
132
return
$this;
133
}
134
135
136
public
function
build
():
OrderPagedSearchResponse
137
{
138
return
new
OrderPagedSearchResponseModel
(
139
$this->total,
140
$this->offset,
141
$this->limit,
142
$this->hits
143
);
144
}
145
146
public
static
function
of
():
OrderPagedSearchResponseBuilder
147
{
148
return
new
self
();
149
}
150
}
Commercetools\Api\Models\Order\HitCollection
Definition:
HitCollection.php:22
Commercetools\Api\Models\Order\OrderPagedSearchResponseBuilder
Definition:
OrderPagedSearchResponseBuilder.php:22
Commercetools\Api\Models\Order\OrderPagedSearchResponseBuilder\getTotal
getTotal()
Definition:
OrderPagedSearchResponseBuilder.php:53
Commercetools\Api\Models\Order\OrderPagedSearchResponseBuilder\withLimit
withLimit(?int $limit)
Definition:
OrderPagedSearchResponseBuilder.php:117
Commercetools\Api\Models\Order\OrderPagedSearchResponseBuilder\withOffset
withOffset(?int $offset)
Definition:
OrderPagedSearchResponseBuilder.php:106
Commercetools\Api\Models\Order\OrderPagedSearchResponseBuilder\getOffset
getOffset()
Definition:
OrderPagedSearchResponseBuilder.php:64
Commercetools\Api\Models\Order\OrderPagedSearchResponseBuilder\withHits
withHits(?HitCollection $hits)
Definition:
OrderPagedSearchResponseBuilder.php:128
Commercetools\Api\Models\Order\OrderPagedSearchResponseBuilder\withTotal
withTotal(?int $total)
Definition:
OrderPagedSearchResponseBuilder.php:95
Commercetools\Api\Models\Order\OrderPagedSearchResponseBuilder\of
static of()
Definition:
OrderPagedSearchResponseBuilder.php:146
Commercetools\Api\Models\Order\OrderPagedSearchResponseBuilder\getHits
getHits()
Definition:
OrderPagedSearchResponseBuilder.php:86
Commercetools\Api\Models\Order\OrderPagedSearchResponseBuilder\getLimit
getLimit()
Definition:
OrderPagedSearchResponseBuilder.php:75
Commercetools\Api\Models\Order\OrderPagedSearchResponseBuilder\build
build()
Definition:
OrderPagedSearchResponseBuilder.php:136
Commercetools\Api\Models\Order\OrderPagedSearchResponseModel
Definition:
OrderPagedSearchResponseModel.php:21
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Api\Models\Order\OrderPagedSearchResponse
Definition:
OrderPagedSearchResponse.php:15
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Order
Definition:
CustomLineItemImportDraft.php:9
Generated by
1.9.1