commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Order
OrderSearchRequestBuilder.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
OrderSearchRequestBuilder
implements
Builder
22
{
27
private
$query;
28
33
private
$sort;
34
39
private
$limit;
40
45
private
$offset;
46
53
public
function
getQuery
()
54
{
55
return
$this->query instanceof
OrderSearchQueryBuilder
? $this->query->
build
() : $this->query;
56
}
57
64
public
function
getSort
()
65
{
66
return
$this->sort;
67
}
68
75
public
function
getLimit
()
76
{
77
return
$this->limit;
78
}
79
86
public
function
getOffset
()
87
{
88
return
$this->offset;
89
}
90
95
public
function
withQuery
(?
OrderSearchQuery
$query)
96
{
97
$this->query = $query;
98
99
return
$this;
100
}
101
106
public
function
withSort
(?
OrderSearchSortingCollection
$sort)
107
{
108
$this->sort = $sort;
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
withOffset
(?
int
$offset)
129
{
130
$this->offset = $offset;
131
132
return
$this;
133
}
134
139
public
function
withQueryBuilder
(?
OrderSearchQueryBuilder
$query)
140
{
141
$this->query = $query;
142
143
return
$this;
144
}
145
146
public
function
build
():
OrderSearchRequest
147
{
148
return
new
OrderSearchRequestModel
(
149
$this->query instanceof
OrderSearchQueryBuilder
? $this->query->
build
() : $this->query,
150
$this->sort,
151
$this->limit,
152
$this->offset
153
);
154
}
155
156
public
static
function
of
():
OrderSearchRequestBuilder
157
{
158
return
new
self
();
159
}
160
}
Commercetools\Api\Models\Order\OrderSearchQueryBuilder
Definition:
OrderSearchQueryBuilder.php:22
Commercetools\Api\Models\Order\OrderSearchQueryBuilder\build
build()
Definition:
OrderSearchQueryBuilder.php:23
Commercetools\Api\Models\Order\OrderSearchRequestBuilder
Definition:
OrderSearchRequestBuilder.php:22
Commercetools\Api\Models\Order\OrderSearchRequestBuilder\build
build()
Definition:
OrderSearchRequestBuilder.php:146
Commercetools\Api\Models\Order\OrderSearchRequestBuilder\getLimit
getLimit()
Definition:
OrderSearchRequestBuilder.php:75
Commercetools\Api\Models\Order\OrderSearchRequestBuilder\withQueryBuilder
withQueryBuilder(?OrderSearchQueryBuilder $query)
Definition:
OrderSearchRequestBuilder.php:139
Commercetools\Api\Models\Order\OrderSearchRequestBuilder\withOffset
withOffset(?int $offset)
Definition:
OrderSearchRequestBuilder.php:128
Commercetools\Api\Models\Order\OrderSearchRequestBuilder\getQuery
getQuery()
Definition:
OrderSearchRequestBuilder.php:53
Commercetools\Api\Models\Order\OrderSearchRequestBuilder\withQuery
withQuery(?OrderSearchQuery $query)
Definition:
OrderSearchRequestBuilder.php:95
Commercetools\Api\Models\Order\OrderSearchRequestBuilder\withSort
withSort(?OrderSearchSortingCollection $sort)
Definition:
OrderSearchRequestBuilder.php:106
Commercetools\Api\Models\Order\OrderSearchRequestBuilder\getOffset
getOffset()
Definition:
OrderSearchRequestBuilder.php:86
Commercetools\Api\Models\Order\OrderSearchRequestBuilder\getSort
getSort()
Definition:
OrderSearchRequestBuilder.php:64
Commercetools\Api\Models\Order\OrderSearchRequestBuilder\withLimit
withLimit(?int $limit)
Definition:
OrderSearchRequestBuilder.php:117
Commercetools\Api\Models\Order\OrderSearchRequestBuilder\of
static of()
Definition:
OrderSearchRequestBuilder.php:156
Commercetools\Api\Models\Order\OrderSearchRequestModel
Definition:
OrderSearchRequestModel.php:21
Commercetools\Api\Models\Order\OrderSearchSortingCollection
Definition:
OrderSearchSortingCollection.php:22
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\OrderSearchQuery
Definition:
OrderSearchQuery.php:15
Commercetools\Api\Models\Order\OrderSearchRequest
Definition:
OrderSearchRequest.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