commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-import
src
Models
Customfields
ReferenceSetFieldBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Import\Models\Customfields
;
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
ReferenceSetFieldBuilder
implements
Builder
23
{
28
private
$value;
29
34
public
function
getValue
()
35
{
36
return
$this->value;
37
}
38
43
public
function
withValue
(?
KeyReferenceCollection
$value)
44
{
45
$this->value = $value;
46
47
return
$this;
48
}
49
50
51
public
function
build
():
ReferenceSetField
52
{
53
return
new
ReferenceSetFieldModel
(
54
$this->value
55
);
56
}
57
58
public
static
function
of
():
ReferenceSetFieldBuilder
59
{
60
return
new
self
();
61
}
62
}
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\Customfields\ReferenceSetFieldBuilder
Definition:
ReferenceSetFieldBuilder.php:23
Commercetools\Import\Models\Customfields\ReferenceSetFieldBuilder\withValue
withValue(?KeyReferenceCollection $value)
Definition:
ReferenceSetFieldBuilder.php:43
Commercetools\Import\Models\Customfields\ReferenceSetFieldBuilder\build
build()
Definition:
ReferenceSetFieldBuilder.php:51
Commercetools\Import\Models\Customfields\ReferenceSetFieldBuilder\getValue
getValue()
Definition:
ReferenceSetFieldBuilder.php:34
Commercetools\Import\Models\Customfields\ReferenceSetFieldBuilder\of
static of()
Definition:
ReferenceSetFieldBuilder.php:58
Commercetools\Import\Models\Customfields\ReferenceSetFieldModel
Definition:
ReferenceSetFieldModel.php:22
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Import\Models\Customfields\ReferenceSetField
Definition:
ReferenceSetField.php:16
Commercetools\Import\Models\Customfields
Definition:
BooleanField.php:9
Generated by
1.9.1