commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
OrderEdit
OrderEditUpdateBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\OrderEdit
;
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
OrderEditUpdateBuilder
implements
Builder
22
{
27
private
$version;
28
33
private
$actions;
34
39
private
$dryRun;
40
48
public
function
getVersion
()
49
{
50
return
$this->version;
51
}
52
59
public
function
getActions
()
60
{
61
return
$this->actions;
62
}
63
70
public
function
getDryRun
()
71
{
72
return
$this->dryRun;
73
}
74
79
public
function
withVersion
(?
int
$version)
80
{
81
$this->version = $version;
82
83
return
$this;
84
}
85
90
public
function
withActions
(?
OrderEditUpdateActionCollection
$actions)
91
{
92
$this->actions = $actions;
93
94
return
$this;
95
}
96
101
public
function
withDryRun
(?
bool
$dryRun)
102
{
103
$this->dryRun = $dryRun;
104
105
return
$this;
106
}
107
108
109
public
function
build
():
OrderEditUpdate
110
{
111
return
new
OrderEditUpdateModel
(
112
$this->version,
113
$this->actions,
114
$this->dryRun
115
);
116
}
117
118
public
static
function
of
():
OrderEditUpdateBuilder
119
{
120
return
new
self
();
121
}
122
}
Commercetools\Api\Models\OrderEdit\OrderEditUpdateActionCollection
Definition:
OrderEditUpdateActionCollection.php:26
Commercetools\Api\Models\OrderEdit\OrderEditUpdateBuilder
Definition:
OrderEditUpdateBuilder.php:22
Commercetools\Api\Models\OrderEdit\OrderEditUpdateBuilder\build
build()
Definition:
OrderEditUpdateBuilder.php:109
Commercetools\Api\Models\OrderEdit\OrderEditUpdateBuilder\getVersion
getVersion()
Definition:
OrderEditUpdateBuilder.php:48
Commercetools\Api\Models\OrderEdit\OrderEditUpdateBuilder\of
static of()
Definition:
OrderEditUpdateBuilder.php:118
Commercetools\Api\Models\OrderEdit\OrderEditUpdateBuilder\withVersion
withVersion(?int $version)
Definition:
OrderEditUpdateBuilder.php:79
Commercetools\Api\Models\OrderEdit\OrderEditUpdateBuilder\withActions
withActions(?OrderEditUpdateActionCollection $actions)
Definition:
OrderEditUpdateBuilder.php:90
Commercetools\Api\Models\OrderEdit\OrderEditUpdateBuilder\getActions
getActions()
Definition:
OrderEditUpdateBuilder.php:59
Commercetools\Api\Models\OrderEdit\OrderEditUpdateBuilder\withDryRun
withDryRun(?bool $dryRun)
Definition:
OrderEditUpdateBuilder.php:101
Commercetools\Api\Models\OrderEdit\OrderEditUpdateBuilder\getDryRun
getDryRun()
Definition:
OrderEditUpdateBuilder.php:70
Commercetools\Api\Models\OrderEdit\OrderEditUpdateModel
Definition:
OrderEditUpdateModel.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\OrderEdit\OrderEditUpdate
Definition:
OrderEditUpdate.php:15
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\OrderEdit
Definition:
OrderEdit.php:9
Generated by
1.9.1