commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-import
src
Models
Productvariants
ReferenceSetAttributeBuilder.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
Commercetools\Import\Models\Common\KeyReferenceCollection
;
17
use stdClass;
18
22
final
class
ReferenceSetAttributeBuilder
implements
Builder
23
{
28
private
$name;
29
34
private
$value;
35
44
public
function
getName
()
45
{
46
return
$this->name;
47
}
48
53
public
function
getValue
()
54
{
55
return
$this->value;
56
}
57
62
public
function
withName
(?
string
$name)
63
{
64
$this->name = $name;
65
66
return
$this;
67
}
68
73
public
function
withValue
(?
KeyReferenceCollection
$value)
74
{
75
$this->value = $value;
76
77
return
$this;
78
}
79
80
81
public
function
build
():
ReferenceSetAttribute
82
{
83
return
new
ReferenceSetAttributeModel
(
84
$this->name,
85
$this->value
86
);
87
}
88
89
public
static
function
of
():
ReferenceSetAttributeBuilder
90
{
91
return
new
self
();
92
}
93
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Import\Models\Common\KeyReferenceCollection
Definition:
KeyReferenceCollection.php:26
Commercetools\Import\Models\Productvariants\ReferenceSetAttributeBuilder
Definition:
ReferenceSetAttributeBuilder.php:23
Commercetools\Import\Models\Productvariants\ReferenceSetAttributeBuilder\getName
getName()
Definition:
ReferenceSetAttributeBuilder.php:44
Commercetools\Import\Models\Productvariants\ReferenceSetAttributeBuilder\of
static of()
Definition:
ReferenceSetAttributeBuilder.php:89
Commercetools\Import\Models\Productvariants\ReferenceSetAttributeBuilder\withValue
withValue(?KeyReferenceCollection $value)
Definition:
ReferenceSetAttributeBuilder.php:73
Commercetools\Import\Models\Productvariants\ReferenceSetAttributeBuilder\getValue
getValue()
Definition:
ReferenceSetAttributeBuilder.php:53
Commercetools\Import\Models\Productvariants\ReferenceSetAttributeBuilder\withName
withName(?string $name)
Definition:
ReferenceSetAttributeBuilder.php:62
Commercetools\Import\Models\Productvariants\ReferenceSetAttributeBuilder\build
build()
Definition:
ReferenceSetAttributeBuilder.php:81
Commercetools\Import\Models\Productvariants\ReferenceSetAttributeModel
Definition:
ReferenceSetAttributeModel.php:22
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Import\Models\Productvariants\ReferenceSetAttribute
Definition:
ReferenceSetAttribute.php:16
Commercetools\Import\Models\Productvariants
Definition:
Attribute.php:9
Generated by
1.9.1