commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-history
src
Models
ChangeValue
AttributeValueBuilder.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
21
final
class
AttributeValueBuilder
implements
Builder
22
{
27
private
$name;
28
33
private
$value;
34
41
public
function
getName
()
42
{
43
return
$this->name;
44
}
45
61
public
function
getValue
()
62
{
63
return
$this->value;
64
}
65
70
public
function
withName
(?
string
$name)
71
{
72
$this->name = $name;
73
74
return
$this;
75
}
76
81
public
function
withValue
( $value)
82
{
83
$this->value = $value;
84
85
return
$this;
86
}
87
88
89
public
function
build
():
AttributeValue
90
{
91
return
new
AttributeValueModel
(
92
$this->name,
93
$this->value
94
);
95
}
96
97
public
static
function
of
():
AttributeValueBuilder
98
{
99
return
new
self
();
100
}
101
}
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\AttributeValueBuilder
Definition:
AttributeValueBuilder.php:22
Commercetools\History\Models\ChangeValue\AttributeValueBuilder\of
static of()
Definition:
AttributeValueBuilder.php:97
Commercetools\History\Models\ChangeValue\AttributeValueBuilder\withValue
withValue( $value)
Definition:
AttributeValueBuilder.php:81
Commercetools\History\Models\ChangeValue\AttributeValueBuilder\getValue
getValue()
Definition:
AttributeValueBuilder.php:61
Commercetools\History\Models\ChangeValue\AttributeValueBuilder\build
build()
Definition:
AttributeValueBuilder.php:89
Commercetools\History\Models\ChangeValue\AttributeValueBuilder\withName
withName(?string $name)
Definition:
AttributeValueBuilder.php:70
Commercetools\History\Models\ChangeValue\AttributeValueBuilder\getName
getName()
Definition:
AttributeValueBuilder.php:41
Commercetools\History\Models\ChangeValue\AttributeValueModel
Definition:
AttributeValueModel.php:21
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\History\Models\ChangeValue\AttributeValue
Definition:
AttributeValue.php:15
Commercetools\History\Models\ChangeValue
Definition:
AssetChangeValue.php:9
Generated by
1.9.1