commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-import
src
Models
OrderPatches
OrderPatchImportBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Import\Models\OrderPatches
;
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
OrderPatchImportBuilder
implements
Builder
22
{
27
private
$orderNumber;
28
33
private
$fields;
34
41
public
function
getOrderNumber
()
42
{
43
return
$this->orderNumber;
44
}
45
52
public
function
getFields
()
53
{
54
return
$this->fields instanceof
OrderFieldBuilder
? $this->fields->
build
() : $this->fields;
55
}
56
61
public
function
withOrderNumber
(?
string
$orderNumber)
62
{
63
$this->orderNumber = $orderNumber;
64
65
return
$this;
66
}
67
72
public
function
withFields
(?
OrderField
$fields)
73
{
74
$this->fields = $fields;
75
76
return
$this;
77
}
78
83
public
function
withFieldsBuilder
(?
OrderFieldBuilder
$fields)
84
{
85
$this->fields = $fields;
86
87
return
$this;
88
}
89
90
public
function
build
():
OrderPatchImport
91
{
92
return
new
OrderPatchImportModel
(
93
$this->orderNumber,
94
$this->fields instanceof
OrderFieldBuilder
? $this->fields->
build
() : $this->fields
95
);
96
}
97
98
public
static
function
of
():
OrderPatchImportBuilder
99
{
100
return
new
self
();
101
}
102
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Import\Models\OrderPatches\OrderFieldBuilder
Definition:
OrderFieldBuilder.php:22
Commercetools\Import\Models\OrderPatches\OrderFieldBuilder\build
build()
Definition:
OrderFieldBuilder.php:352
Commercetools\Import\Models\OrderPatches\OrderPatchImportBuilder
Definition:
OrderPatchImportBuilder.php:22
Commercetools\Import\Models\OrderPatches\OrderPatchImportBuilder\build
build()
Definition:
OrderPatchImportBuilder.php:90
Commercetools\Import\Models\OrderPatches\OrderPatchImportBuilder\withOrderNumber
withOrderNumber(?string $orderNumber)
Definition:
OrderPatchImportBuilder.php:61
Commercetools\Import\Models\OrderPatches\OrderPatchImportBuilder\withFieldsBuilder
withFieldsBuilder(?OrderFieldBuilder $fields)
Definition:
OrderPatchImportBuilder.php:83
Commercetools\Import\Models\OrderPatches\OrderPatchImportBuilder\of
static of()
Definition:
OrderPatchImportBuilder.php:98
Commercetools\Import\Models\OrderPatches\OrderPatchImportBuilder\getFields
getFields()
Definition:
OrderPatchImportBuilder.php:52
Commercetools\Import\Models\OrderPatches\OrderPatchImportBuilder\withFields
withFields(?OrderField $fields)
Definition:
OrderPatchImportBuilder.php:72
Commercetools\Import\Models\OrderPatches\OrderPatchImportBuilder\getOrderNumber
getOrderNumber()
Definition:
OrderPatchImportBuilder.php:41
Commercetools\Import\Models\OrderPatches\OrderPatchImportModel
Definition:
OrderPatchImportModel.php:21
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Import\Models\OrderPatches\OrderField
Definition:
OrderField.php:15
Commercetools\Import\Models\OrderPatches\OrderPatchImport
Definition:
OrderPatchImport.php:15
Commercetools\Import\Models\OrderPatches
Definition:
DeliveryAddressDraft.php:9
Generated by
1.9.1