commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Order
OrderSearchPrefixExpressionBuilder.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
OrderSearchPrefixExpressionBuilder
implements
Builder
22
{
27
private
$prefix;
28
33
public
function
getPrefix
()
34
{
35
return
$this->prefix instanceof
OrderSearchStringValueBuilder
? $this->prefix->
build
() : $this->prefix;
36
}
37
42
public
function
withPrefix
(?
OrderSearchStringValue
$prefix)
43
{
44
$this->prefix = $prefix;
45
46
return
$this;
47
}
48
53
public
function
withPrefixBuilder
(?
OrderSearchStringValueBuilder
$prefix)
54
{
55
$this->prefix = $prefix;
56
57
return
$this;
58
}
59
60
public
function
build
():
OrderSearchPrefixExpression
61
{
62
return
new
OrderSearchPrefixExpressionModel
(
63
$this->prefix instanceof
OrderSearchStringValueBuilder
? $this->prefix->
build
() : $this->prefix
64
);
65
}
66
67
public
static
function
of
():
OrderSearchPrefixExpressionBuilder
68
{
69
return
new
self
();
70
}
71
}
Commercetools\Api\Models\Order\OrderSearchPrefixExpressionBuilder
Definition:
OrderSearchPrefixExpressionBuilder.php:22
Commercetools\Api\Models\Order\OrderSearchPrefixExpressionBuilder\withPrefix
withPrefix(?OrderSearchStringValue $prefix)
Definition:
OrderSearchPrefixExpressionBuilder.php:42
Commercetools\Api\Models\Order\OrderSearchPrefixExpressionBuilder\of
static of()
Definition:
OrderSearchPrefixExpressionBuilder.php:67
Commercetools\Api\Models\Order\OrderSearchPrefixExpressionBuilder\getPrefix
getPrefix()
Definition:
OrderSearchPrefixExpressionBuilder.php:33
Commercetools\Api\Models\Order\OrderSearchPrefixExpressionBuilder\build
build()
Definition:
OrderSearchPrefixExpressionBuilder.php:60
Commercetools\Api\Models\Order\OrderSearchPrefixExpressionBuilder\withPrefixBuilder
withPrefixBuilder(?OrderSearchStringValueBuilder $prefix)
Definition:
OrderSearchPrefixExpressionBuilder.php:53
Commercetools\Api\Models\Order\OrderSearchPrefixExpressionModel
Definition:
OrderSearchPrefixExpressionModel.php:21
Commercetools\Api\Models\Order\OrderSearchStringValueBuilder
Definition:
OrderSearchStringValueBuilder.php:22
Commercetools\Api\Models\Order\OrderSearchStringValueBuilder\build
build()
Definition:
OrderSearchStringValueBuilder.php:182
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\OrderSearchPrefixExpression
Definition:
OrderSearchPrefixExpression.php:15
Commercetools\Api\Models\Order\OrderSearchStringValue
Definition:
OrderSearchStringValue.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