commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-import
src
Models
Productvariants
NumberSetAttributeBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Import\Models\Productvariants
;
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
NumberSetAttributeBuilder
implements
Builder
22
{
27
private
$name;
28
33
private
$value;
34
43
public
function
getName
()
44
{
45
return
$this->name;
46
}
47
52
public
function
getValue
()
53
{
54
return
$this->value;
55
}
56
61
public
function
withName
(?
string
$name)
62
{
63
$this->name = $name;
64
65
return
$this;
66
}
67
72
public
function
withValue
(?array $value)
73
{
74
$this->value = $value;
75
76
return
$this;
77
}
78
79
80
public
function
build
():
NumberSetAttribute
81
{
82
return
new
NumberSetAttributeModel
(
83
$this->name,
84
$this->value
85
);
86
}
87
88
public
static
function
of
():
NumberSetAttributeBuilder
89
{
90
return
new
self
();
91
}
92
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Import\Models\Productvariants\NumberSetAttributeBuilder
Definition:
NumberSetAttributeBuilder.php:22
Commercetools\Import\Models\Productvariants\NumberSetAttributeBuilder\getName
getName()
Definition:
NumberSetAttributeBuilder.php:43
Commercetools\Import\Models\Productvariants\NumberSetAttributeBuilder\build
build()
Definition:
NumberSetAttributeBuilder.php:80
Commercetools\Import\Models\Productvariants\NumberSetAttributeBuilder\withName
withName(?string $name)
Definition:
NumberSetAttributeBuilder.php:61
Commercetools\Import\Models\Productvariants\NumberSetAttributeBuilder\getValue
getValue()
Definition:
NumberSetAttributeBuilder.php:52
Commercetools\Import\Models\Productvariants\NumberSetAttributeBuilder\withValue
withValue(?array $value)
Definition:
NumberSetAttributeBuilder.php:72
Commercetools\Import\Models\Productvariants\NumberSetAttributeBuilder\of
static of()
Definition:
NumberSetAttributeBuilder.php:88
Commercetools\Import\Models\Productvariants\NumberSetAttributeModel
Definition:
NumberSetAttributeModel.php:21
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Import\Models\Productvariants\NumberSetAttribute
Definition:
NumberSetAttribute.php:15
Commercetools\Import\Models\Productvariants
Definition:
Attribute.php:9
Generated by
1.9.1