commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
lib
commercetools-api
src
Models
OrderEdit
OrderEditAppliedBuilder.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 DateTimeImmutable;
17
use stdClass;
18
22
final
class
OrderEditAppliedBuilder
implements
Builder
23
{
28
private
$appliedAt;
29
34
private
$excerptBeforeEdit;
35
40
private
$excerptAfterEdit;
41
48
public
function
getAppliedAt
()
49
{
50
return
$this->appliedAt;
51
}
52
59
public
function
getExcerptBeforeEdit
()
60
{
61
return
$this->excerptBeforeEdit instanceof
OrderExcerptBuilder
? $this->excerptBeforeEdit->
build
() : $this->excerptBeforeEdit;
62
}
63
70
public
function
getExcerptAfterEdit
()
71
{
72
return
$this->excerptAfterEdit instanceof
OrderExcerptBuilder
? $this->excerptAfterEdit->
build
() : $this->excerptAfterEdit;
73
}
74
79
public
function
withAppliedAt
(?DateTimeImmutable $appliedAt)
80
{
81
$this->appliedAt = $appliedAt;
82
83
return
$this;
84
}
85
90
public
function
withExcerptBeforeEdit
(?
OrderExcerpt
$excerptBeforeEdit)
91
{
92
$this->excerptBeforeEdit = $excerptBeforeEdit;
93
94
return
$this;
95
}
96
101
public
function
withExcerptAfterEdit
(?
OrderExcerpt
$excerptAfterEdit)
102
{
103
$this->excerptAfterEdit = $excerptAfterEdit;
104
105
return
$this;
106
}
107
112
public
function
withExcerptBeforeEditBuilder
(?
OrderExcerptBuilder
$excerptBeforeEdit)
113
{
114
$this->excerptBeforeEdit = $excerptBeforeEdit;
115
116
return
$this;
117
}
118
123
public
function
withExcerptAfterEditBuilder
(?
OrderExcerptBuilder
$excerptAfterEdit)
124
{
125
$this->excerptAfterEdit = $excerptAfterEdit;
126
127
return
$this;
128
}
129
130
public
function
build
():
OrderEditApplied
131
{
132
return
new
OrderEditAppliedModel
(
133
$this->appliedAt,
134
$this->excerptBeforeEdit instanceof
OrderExcerptBuilder
? $this->excerptBeforeEdit->
build
() : $this->excerptBeforeEdit,
135
$this->excerptAfterEdit instanceof
OrderExcerptBuilder
? $this->excerptAfterEdit->
build
() : $this->excerptAfterEdit
136
);
137
}
138
139
public
static
function
of
():
OrderEditAppliedBuilder
140
{
141
return
new
self
();
142
}
143
}
Commercetools\Api\Models\OrderEdit\OrderEditAppliedBuilder
Definition
OrderEditAppliedBuilder.php:23
Commercetools\Api\Models\OrderEdit\OrderEditAppliedBuilder\getExcerptAfterEdit
getExcerptAfterEdit()
Definition
OrderEditAppliedBuilder.php:70
Commercetools\Api\Models\OrderEdit\OrderEditAppliedBuilder\build
build()
Definition
OrderEditAppliedBuilder.php:130
Commercetools\Api\Models\OrderEdit\OrderEditAppliedBuilder\getAppliedAt
getAppliedAt()
Definition
OrderEditAppliedBuilder.php:48
Commercetools\Api\Models\OrderEdit\OrderEditAppliedBuilder\of
static of()
Definition
OrderEditAppliedBuilder.php:139
Commercetools\Api\Models\OrderEdit\OrderEditAppliedBuilder\withExcerptAfterEdit
withExcerptAfterEdit(?OrderExcerpt $excerptAfterEdit)
Definition
OrderEditAppliedBuilder.php:101
Commercetools\Api\Models\OrderEdit\OrderEditAppliedBuilder\getExcerptBeforeEdit
getExcerptBeforeEdit()
Definition
OrderEditAppliedBuilder.php:59
Commercetools\Api\Models\OrderEdit\OrderEditAppliedBuilder\withExcerptBeforeEditBuilder
withExcerptBeforeEditBuilder(?OrderExcerptBuilder $excerptBeforeEdit)
Definition
OrderEditAppliedBuilder.php:112
Commercetools\Api\Models\OrderEdit\OrderEditAppliedBuilder\withAppliedAt
withAppliedAt(?DateTimeImmutable $appliedAt)
Definition
OrderEditAppliedBuilder.php:79
Commercetools\Api\Models\OrderEdit\OrderEditAppliedBuilder\withExcerptBeforeEdit
withExcerptBeforeEdit(?OrderExcerpt $excerptBeforeEdit)
Definition
OrderEditAppliedBuilder.php:90
Commercetools\Api\Models\OrderEdit\OrderEditAppliedBuilder\withExcerptAfterEditBuilder
withExcerptAfterEditBuilder(?OrderExcerptBuilder $excerptAfterEdit)
Definition
OrderEditAppliedBuilder.php:123
Commercetools\Api\Models\OrderEdit\OrderEditAppliedModel
Definition
OrderEditAppliedModel.php:22
Commercetools\Api\Models\OrderEdit\OrderExcerptBuilder
Definition
OrderExcerptBuilder.php:26
Commercetools\Api\Models\OrderEdit\OrderExcerptBuilder\build
build()
Definition
OrderExcerptBuilder.php:133
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\OrderEditApplied
Definition
OrderEditApplied.php:16
Commercetools\Api\Models\OrderEdit\OrderExcerpt
Definition
OrderExcerpt.php:17
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.8