commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Customer
CustomerSetCustomFieldActionBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Customer
;
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
CustomerSetCustomFieldActionBuilder
implements
Builder
22
{
27
private
$name;
28
33
private
$value;
34
41
public
function
getName
()
42
{
43
return
$this->name;
44
}
45
54
public
function
getValue
()
55
{
56
return
$this->value;
57
}
58
63
public
function
withName
(?
string
$name)
64
{
65
$this->name = $name;
66
67
return
$this;
68
}
69
74
public
function
withValue
($value)
75
{
76
$this->value = $value;
77
78
return
$this;
79
}
80
81
82
public
function
build
():
CustomerSetCustomFieldAction
83
{
84
return
new
CustomerSetCustomFieldActionModel
(
85
$this->name,
86
$this->value
87
);
88
}
89
90
public
static
function
of
():
CustomerSetCustomFieldActionBuilder
91
{
92
return
new
self
();
93
}
94
}
Commercetools\Api\Models\Customer\CustomerSetCustomFieldActionBuilder
Definition:
CustomerSetCustomFieldActionBuilder.php:22
Commercetools\Api\Models\Customer\CustomerSetCustomFieldActionBuilder\build
build()
Definition:
CustomerSetCustomFieldActionBuilder.php:82
Commercetools\Api\Models\Customer\CustomerSetCustomFieldActionBuilder\getName
getName()
Definition:
CustomerSetCustomFieldActionBuilder.php:41
Commercetools\Api\Models\Customer\CustomerSetCustomFieldActionBuilder\withName
withName(?string $name)
Definition:
CustomerSetCustomFieldActionBuilder.php:63
Commercetools\Api\Models\Customer\CustomerSetCustomFieldActionBuilder\of
static of()
Definition:
CustomerSetCustomFieldActionBuilder.php:90
Commercetools\Api\Models\Customer\CustomerSetCustomFieldActionBuilder\getValue
getValue()
Definition:
CustomerSetCustomFieldActionBuilder.php:54
Commercetools\Api\Models\Customer\CustomerSetCustomFieldActionBuilder\withValue
withValue($value)
Definition:
CustomerSetCustomFieldActionBuilder.php:74
Commercetools\Api\Models\Customer\CustomerSetCustomFieldActionModel
Definition:
CustomerSetCustomFieldActionModel.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\Customer\CustomerSetCustomFieldAction
Definition:
CustomerSetCustomFieldAction.php:15
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Customer
Definition:
Customer.php:9
Generated by
1.9.1