commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-history
src
Models
Change
AddInterfaceInteractionChangeBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\History\Models\Change
;
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
use
Commercetools\History\Models\ChangeValue\CustomFieldExpandedValue
;
18
use
Commercetools\History\Models\ChangeValue\CustomFieldExpandedValueBuilder
;
19
23
final
class
AddInterfaceInteractionChangeBuilder
implements
Builder
24
{
29
private
$change;
30
35
private
$nextValue;
36
41
public
function
getChange
()
42
{
43
return
$this->change;
44
}
45
52
public
function
getNextValue
()
53
{
54
return
$this->nextValue instanceof
CustomFieldExpandedValueBuilder
? $this->nextValue->
build
() : $this->nextValue;
55
}
56
61
public
function
withChange
(?
string
$change)
62
{
63
$this->change = $change;
64
65
return
$this;
66
}
67
72
public
function
withNextValue
(?
CustomFieldExpandedValue
$nextValue)
73
{
74
$this->nextValue = $nextValue;
75
76
return
$this;
77
}
78
83
public
function
withNextValueBuilder
(?
CustomFieldExpandedValueBuilder
$nextValue)
84
{
85
$this->nextValue = $nextValue;
86
87
return
$this;
88
}
89
90
public
function
build
():
AddInterfaceInteractionChange
91
{
92
return
new
AddInterfaceInteractionChangeModel
(
93
$this->change,
94
$this->nextValue instanceof
CustomFieldExpandedValueBuilder
? $this->nextValue->
build
() : $this->nextValue
95
);
96
}
97
98
public
static
function
of
():
AddInterfaceInteractionChangeBuilder
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\History\Models\Change\AddInterfaceInteractionChangeBuilder
Definition:
AddInterfaceInteractionChangeBuilder.php:24
Commercetools\History\Models\Change\AddInterfaceInteractionChangeBuilder\build
build()
Definition:
AddInterfaceInteractionChangeBuilder.php:90
Commercetools\History\Models\Change\AddInterfaceInteractionChangeBuilder\withNextValueBuilder
withNextValueBuilder(?CustomFieldExpandedValueBuilder $nextValue)
Definition:
AddInterfaceInteractionChangeBuilder.php:83
Commercetools\History\Models\Change\AddInterfaceInteractionChangeBuilder\withChange
withChange(?string $change)
Definition:
AddInterfaceInteractionChangeBuilder.php:61
Commercetools\History\Models\Change\AddInterfaceInteractionChangeBuilder\getNextValue
getNextValue()
Definition:
AddInterfaceInteractionChangeBuilder.php:52
Commercetools\History\Models\Change\AddInterfaceInteractionChangeBuilder\getChange
getChange()
Definition:
AddInterfaceInteractionChangeBuilder.php:41
Commercetools\History\Models\Change\AddInterfaceInteractionChangeBuilder\withNextValue
withNextValue(?CustomFieldExpandedValue $nextValue)
Definition:
AddInterfaceInteractionChangeBuilder.php:72
Commercetools\History\Models\Change\AddInterfaceInteractionChangeBuilder\of
static of()
Definition:
AddInterfaceInteractionChangeBuilder.php:98
Commercetools\History\Models\Change\AddInterfaceInteractionChangeModel
Definition:
AddInterfaceInteractionChangeModel.php:23
Commercetools\History\Models\ChangeValue\CustomFieldExpandedValueBuilder
Definition:
CustomFieldExpandedValueBuilder.php:24
Commercetools\History\Models\ChangeValue\CustomFieldExpandedValueBuilder\build
build()
Definition:
CustomFieldExpandedValueBuilder.php:120
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\History\Models\Change\AddInterfaceInteractionChange
Definition:
AddInterfaceInteractionChange.php:16
Commercetools\History\Models\ChangeValue\CustomFieldExpandedValue
Definition:
CustomFieldExpandedValue.php:16
Commercetools\History\Models\Change
Definition:
AddAddressChange.php:9
Generated by
1.9.1