commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-history
src
Models
ChangeValue
FieldDefinitionOrderValueBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\History\Models\ChangeValue
;
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\Common\LocalizedString
;
18
use
Commercetools\History\Models\Common\LocalizedStringBuilder
;
19
23
final
class
FieldDefinitionOrderValueBuilder
implements
Builder
24
{
29
private
$name;
30
35
private
$label;
36
43
public
function
getName
()
44
{
45
return
$this->name;
46
}
47
54
public
function
getLabel
()
55
{
56
return
$this->label instanceof
LocalizedStringBuilder
? $this->label->
build
() : $this->label;
57
}
58
63
public
function
withName
(?
string
$name)
64
{
65
$this->name = $name;
66
67
return
$this;
68
}
69
74
public
function
withLabel
(?
LocalizedString
$label)
75
{
76
$this->label = $label;
77
78
return
$this;
79
}
80
85
public
function
withLabelBuilder
(?
LocalizedStringBuilder
$label)
86
{
87
$this->label = $label;
88
89
return
$this;
90
}
91
92
public
function
build
():
FieldDefinitionOrderValue
93
{
94
return
new
FieldDefinitionOrderValueModel
(
95
$this->name,
96
$this->label instanceof
LocalizedStringBuilder
? $this->label->
build
() : $this->label
97
);
98
}
99
100
public
static
function
of
():
FieldDefinitionOrderValueBuilder
101
{
102
return
new
self
();
103
}
104
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\History\Models\ChangeValue\FieldDefinitionOrderValueBuilder
Definition:
FieldDefinitionOrderValueBuilder.php:24
Commercetools\History\Models\ChangeValue\FieldDefinitionOrderValueBuilder\withLabelBuilder
withLabelBuilder(?LocalizedStringBuilder $label)
Definition:
FieldDefinitionOrderValueBuilder.php:85
Commercetools\History\Models\ChangeValue\FieldDefinitionOrderValueBuilder\getLabel
getLabel()
Definition:
FieldDefinitionOrderValueBuilder.php:54
Commercetools\History\Models\ChangeValue\FieldDefinitionOrderValueBuilder\withLabel
withLabel(?LocalizedString $label)
Definition:
FieldDefinitionOrderValueBuilder.php:74
Commercetools\History\Models\ChangeValue\FieldDefinitionOrderValueBuilder\of
static of()
Definition:
FieldDefinitionOrderValueBuilder.php:100
Commercetools\History\Models\ChangeValue\FieldDefinitionOrderValueBuilder\build
build()
Definition:
FieldDefinitionOrderValueBuilder.php:92
Commercetools\History\Models\ChangeValue\FieldDefinitionOrderValueBuilder\withName
withName(?string $name)
Definition:
FieldDefinitionOrderValueBuilder.php:63
Commercetools\History\Models\ChangeValue\FieldDefinitionOrderValueBuilder\getName
getName()
Definition:
FieldDefinitionOrderValueBuilder.php:43
Commercetools\History\Models\ChangeValue\FieldDefinitionOrderValueModel
Definition:
FieldDefinitionOrderValueModel.php:23
Commercetools\History\Models\Common\LocalizedStringBuilder
Definition:
LocalizedStringBuilder.php:20
Commercetools\History\Models\Common\LocalizedStringBuilder\build
build()
Definition:
LocalizedStringBuilder.php:42
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\History\Models\ChangeValue\FieldDefinitionOrderValue
Definition:
FieldDefinitionOrderValue.php:16
Commercetools\History\Models\Common\LocalizedString
Definition:
LocalizedString.php:14
Commercetools\History\Models\ChangeValue
Definition:
AssetChangeValue.php:9
Generated by
1.9.1