commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-import
src
Models
Productvariants
BooleanAttributeBuilder.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
BooleanAttributeBuilder
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
(?
bool
$value)
73
{
74
$this->value = $value;
75
76
return
$this;
77
}
78
79
80
public
function
build
():
BooleanAttribute
81
{
82
return
new
BooleanAttributeModel
(
83
$this->name,
84
$this->value
85
);
86
}
87
88
public
static
function
of
():
BooleanAttributeBuilder
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\BooleanAttributeBuilder
Definition:
BooleanAttributeBuilder.php:22
Commercetools\Import\Models\Productvariants\BooleanAttributeBuilder\of
static of()
Definition:
BooleanAttributeBuilder.php:88
Commercetools\Import\Models\Productvariants\BooleanAttributeBuilder\withValue
withValue(?bool $value)
Definition:
BooleanAttributeBuilder.php:72
Commercetools\Import\Models\Productvariants\BooleanAttributeBuilder\build
build()
Definition:
BooleanAttributeBuilder.php:80
Commercetools\Import\Models\Productvariants\BooleanAttributeBuilder\getValue
getValue()
Definition:
BooleanAttributeBuilder.php:52
Commercetools\Import\Models\Productvariants\BooleanAttributeBuilder\withName
withName(?string $name)
Definition:
BooleanAttributeBuilder.php:61
Commercetools\Import\Models\Productvariants\BooleanAttributeBuilder\getName
getName()
Definition:
BooleanAttributeBuilder.php:43
Commercetools\Import\Models\Productvariants\BooleanAttributeModel
Definition:
BooleanAttributeModel.php:21
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Import\Models\Productvariants\BooleanAttribute
Definition:
BooleanAttribute.php:15
Commercetools\Import\Models\Productvariants
Definition:
Attribute.php:9
Generated by
1.9.1